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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android compile fixes Created 6 years, 3 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
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index ae2d0d7902bbfecac808ac935043f0086d918783..9c0f6322a58a0afe64d445b5a6aa7276089d0a76 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -796,9 +796,8 @@ void RenderWidgetCompositor::ApplyViewportDeltas(
top_controls_delta);
}
-scoped_ptr<cc::OutputSurface> RenderWidgetCompositor::CreateOutputSurface(
- bool fallback) {
- return widget_->CreateOutputSurface(fallback);
+void RenderWidgetCompositor::RequestNewOutputSurface(bool fallback) {
+ layer_tree_host_->SetOutputSurface(widget_->CreateOutputSurface(fallback));
}
void RenderWidgetCompositor::DidInitializeOutputSurface() {

Powered by Google App Engine
This is Rietveld 408576698