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

Unified Diff: ui/compositor/compositor.h

Issue 277713002: ui/compositor: move the browser compositor thread to the ContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix includes Created 6 years, 7 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 | « ui/aura/env.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 3cc02690d967f33812a0fc41dc2abbe409a7ef42..bc5cefd8a7603a4c4aefc8ba3bb961b519116025 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -96,6 +96,10 @@ class COMPOSITOR_EXPORT ContextFactory {
// Gets the shared bitmap manager for software mode.
virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
+
+ // Gets the compositor message loop, or NULL if not using threaded
+ // compositing.
+ virtual base::MessageLoopProxy* GetCompositorMessageLoop() = 0;
};
// This class represents a lock on the compositor, that can be used to prevent
@@ -135,11 +139,6 @@ class COMPOSITOR_EXPORT Compositor
explicit Compositor(gfx::AcceleratedWidget widget);
virtual ~Compositor();
- static void Initialize();
- static bool WasInitializedWithThread();
- static scoped_refptr<base::MessageLoopProxy> GetCompositorMessageLoop();
- static void Terminate();
-
// Schedules a redraw of the layer tree associated with this compositor.
void ScheduleDraw();
@@ -265,6 +264,7 @@ class COMPOSITOR_EXPORT Compositor
gfx::AcceleratedWidget widget_;
scoped_refptr<cc::Layer> root_web_layer_;
scoped_ptr<cc::LayerTreeHost> host_;
+ scoped_refptr<base::MessageLoopProxy> compositor_thread_loop_;
// The manager of vsync parameters for this compositor.
scoped_refptr<CompositorVSyncManager> vsync_manager_;
« no previous file with comments | « ui/aura/env.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698