Propagate back damaged rects coming from the UI to the renderer.
This patch also fixes top level controls rendering in s/w compositing for Aura on Windows.
BUG=161008,229553
Review URL: https://codereview.chromium.org/14197002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194248 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 683562a9..fe66c3e 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -574,7 +574,7 @@
host_->set_has_transparent_background(host_has_transparent_background);
}
-void Compositor::Draw(bool force_clear) {
+void Compositor::Draw() {
DCHECK(!g_compositor_thread);
if (!root_layer_)
@@ -604,10 +604,14 @@
NotifyEnd();
}
-void Compositor::ScheduleFullDraw() {
+void Compositor::ScheduleFullRedraw() {
host_->SetNeedsRedraw();
}
+void Compositor::ScheduleRedrawRect(const gfx::Rect& damage_rect) {
+ host_->SetNeedsRedrawRect(damage_rect);
+}
+
bool Compositor::ReadPixels(SkBitmap* bitmap,
const gfx::Rect& bounds_in_pixel) {
if (bounds_in_pixel.right() > size().width() ||