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

Unified Diff: ui/compositor/compositor.h

Issue 285373012: Temporarily adds another constructor to Compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweak 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 | « no previous file | 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 ad00a419ce9d67c22b8efeeadd953f7b9da445e6..3c9ea047dcd33ccac94eb190f6fc014fd5d2c77a 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -136,9 +136,15 @@ 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();
+ ui::ContextFactory* context_factory() { return context_factory_; }
+
// Schedules a redraw of the layer tree associated with this compositor.
void ScheduleDraw();
@@ -248,6 +254,11 @@ 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();
@@ -259,6 +270,8 @@ class COMPOSITOR_EXPORT Compositor
gfx::Size size_;
+ ui::ContextFactory* context_factory_;
+
// The root of the Layer tree drawn by this compositor.
Layer* root_layer_;
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698