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

Unified Diff: mojo/aura/surface_context_factory.cc

Issue 808003002: Fix compositor integration in ui/compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « mojo/aura/surface_context_factory.h ('k') | mojo/cc/context_provider_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/aura/surface_context_factory.cc
diff --git a/mojo/aura/surface_context_factory.cc b/mojo/aura/surface_context_factory.cc
index 1d8cf9cf56ac54031b100b9bc8de646a97767fc7..3e1422f9a95c9cececdd2e1bd34fb6a7552148e8 100644
--- a/mojo/aura/surface_context_factory.cc
+++ b/mojo/aura/surface_context_factory.cc
@@ -20,10 +20,10 @@ SurfaceContextFactory::SurfaceContextFactory(Shell* shell, View* view)
SurfaceContextFactory::~SurfaceContextFactory() {
}
-scoped_ptr<cc::OutputSurface> SurfaceContextFactory::CreateOutputSurface(
- ui::Compositor* compositor,
+void SurfaceContextFactory::CreateOutputSurface(
+ base::WeakPtr<ui::Compositor> compositor,
bool software_fallback) {
- return surface_binding_.CreateOutputSurface();
+ compositor->SetOutputSurface(surface_binding_.CreateOutputSurface());
}
scoped_refptr<ui::Reflector> SurfaceContextFactory::CreateReflector(
« no previous file with comments | « mojo/aura/surface_context_factory.h ('k') | mojo/cc/context_provider_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698