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

Unified Diff: cc/layer_tree_host.h

Issue 12212007: cc: Route offscreen context creation for compositor to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « cc/layer.cc ('k') | cc/layer_tree_host.cc » ('j') | cc/resource_provider.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host.h
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h
index a45c1c1ee1e1941313d8b85a4c1bfaad51a9fd0f..059989d191d6c6d48a6a7dbec99c675d0c0d4b6c 100644
--- a/cc/layer_tree_host.h
+++ b/cc/layer_tree_host.h
@@ -82,9 +82,8 @@ public:
// Returns true if any LayerTreeHost is alive.
static bool anyLayerTreeHostInstanceExists();
- static bool needsFilterContext() { return s_needsFilterContext; }
- static void setNeedsFilterContext(bool needsFilterContext) { s_needsFilterContext = needsFilterContext; }
- bool needsSharedContext() const { return needsFilterContext() || settings().acceleratePainting; }
+ void setNeedsFilterContext() { m_needsFilterContext = true; }
+ bool needsOffscreenContext() const { return m_needsFilterContext || settings().acceleratePainting; }
// LayerTreeHost interface to Proxy.
void willBeginFrame() { m_client->willBeginFrame(); }
@@ -229,6 +228,7 @@ private:
bool m_animating;
bool m_needsFullTreeSync;
+ bool m_needsFilterContext;
base::CancelableClosure m_prepaintCallback;
@@ -273,8 +273,6 @@ private:
scoped_ptr<AnimationRegistrar> m_animationRegistrar;
- static bool s_needsFilterContext;
-
DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
};
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_tree_host.cc » ('j') | cc/resource_provider.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698