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

Unified Diff: ui/compositor/compositor.h

Issue 307963007: Removes ContextFactory::Get/SetInstance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix aura_bench 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/bench/bench_main.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 3c9ea047dcd33ccac94eb190f6fc014fd5d2c77a..e0606c1a8f47d541183c376b6d0a1c341c9a1daf 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -60,14 +60,6 @@ class COMPOSITOR_EXPORT ContextFactory {
public:
virtual ~ContextFactory() {}
- // Gets the global instance.
- static ContextFactory* GetInstance();
-
- // Sets the global instance. Caller keeps ownership.
- // If this function isn't called (for tests), a "default" factory will be
- // created on the first call of GetInstance.
- static void SetInstance(ContextFactory* instance);
-
// Creates an output surface for the given compositor. The factory may keep
// per-compositor data (e.g. a shared context), that needs to be cleaned up
// by calling RemoveCompositor when the compositor gets destroyed.
@@ -136,9 +128,6 @@ class COMPOSITOR_EXPORT Compositor
: NON_EXPORTED_BASE(public cc::LayerTreeHostClient),
NON_EXPORTED_BASE(public cc::LayerTreeHostSingleThreadClient) {
public:
- // This is deprecated, and will be removed shortly.
- // TODO(sky): remove this.
- explicit Compositor(gfx::AcceleratedWidget widget);
Compositor(gfx::AcceleratedWidget widget,
ui::ContextFactory* context_factory);
virtual ~Compositor();
@@ -254,11 +243,6 @@ class COMPOSITOR_EXPORT Compositor
friend class base::RefCounted<Compositor>;
friend class CompositorLock;
- // Called from both constructors. It's temporary while we have both
- // constructors.
- // TODO(sky): nuke this.
- void Init();
-
// Called by CompositorLock.
void UnlockCompositor();
« no previous file with comments | « ui/aura/bench/bench_main.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698