Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 8764001: Plumb damage rect to browser compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 5ce78554ad23e33a7ac26fe368d4fc477323715e..1320715e653b60b4a83415dcf975f36248c1fab2 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -333,9 +333,15 @@ void RenderWidgetHostViewAura::AcceleratedSurfacePostSubBuffer(
// Must still send the ACK
RenderWidgetHost::AcknowledgePostSubBuffer(params.route_id, gpu_host_id);
} else {
- // TODO(backer): Plumb the damage rect to the ui compositor so that we
- // can do a partial swap to display.
+#if defined(USE_WEBKIT_COMPOSITOR)
+ window_->layer()->SchedulePaint(gfx::Rect(
+ params.x,
+ window_->layer()->bounds().height() - params.y - params.height,
piman 2011/11/30 22:28:44 Shouldn't that depend on whether or not we need to
piman 2011/12/06 00:46:34 Ping?
+ params.width,
+ params.height));
+#else
window_->layer()->ScheduleDraw();
+#endif
// Add sending an ACK to the list of things to do OnCompositingEnded
on_compositing_ended_callbacks_.push_back(
« no previous file with comments | « no previous file | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698