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

Unified Diff: ui/compositor/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: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 4f4037490a2a0135b0170f599f799b76e82be0cb..76ed4379b991526ab8778c844496527b6fc1b28a 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -341,8 +341,9 @@ void Compositor::Layout() {
disable_schedule_composite_ = false;
}
-scoped_ptr<cc::OutputSurface> Compositor::CreateOutputSurface(bool fallback) {
- return context_factory_->CreateOutputSurface(this, fallback);
+void Compositor::RequestNewOutputSurface(bool fallback) {
+ host_->SetOutputSurface(
+ context_factory_->CreateOutputSurface(this, fallback));
}
void Compositor::DidCommit() {
« content/browser/renderer_host/compositor_impl_android.cc ('K') | « ui/compositor/compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698