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

Unified Diff: content/renderer/render_widget.cc

Issue 11787006: Avoid going through WebWidget::composite to composite a RenderWidget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 years, 12 months 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 | « content/renderer/render_widget.h ('k') | content/renderer/render_widget_fullscreen_pepper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/renderer/render_widget_fullscreen_pepper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698