Chromium Code Reviews| 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( |