Index: content/renderer/render_widget.cc |
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc |
index 388cd0bad27efa5fd84c8d023167c6f2871771d2..27383cc1fc923c70305697effb43212393f84456 100644 |
--- a/content/renderer/render_widget.cc |
+++ b/content/renderer/render_widget.cc |
@@ -1084,7 +1084,7 @@ void RenderWidget::DoDeferredUpdate() { |
// If it needs to (e.g. composited UI), the GPU process does its own ACK |
// with the browser for the GPU surface. |
pending_update_params_->needs_ack = false; |
- webwidget_->composite(false); |
+ Composite(); |
} |
// If we're holding a pending input event ACK, send the ACK before sending the |
@@ -1094,7 +1094,7 @@ void RenderWidget::DoDeferredUpdate() { |
if (pending_input_event_ack_.get()) |
Send(pending_input_event_ack_.release()); |
- // If composite() called SwapBuffers, pending_update_params_ will be reset (in |
+ // If Composite() called SwapBuffers, pending_update_params_ will be reset (in |
// OnSwapBuffersPosted), meaning a message has been added to the |
// updates_pending_swap_ queue, that will be sent later. Otherwise, we send |
// the message now. |
@@ -1110,6 +1110,12 @@ void RenderWidget::DoDeferredUpdate() { |
DidInitiatePaint(); |
} |
+void RenderWidget::Composite() { |
+ DCHECK(is_accelerated_compositing_active_); |
+ DCHECK(web_layer_tree_view_); |
+ web_layer_tree_view_->composite(); |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////// |
// WebWidgetClient |