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

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: Fix typo 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
Index: cc/layer_tree_host.h
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h
index aae040039de50a431901bd7c9581a22788a005d0..40e5c25b509ac3227a1a6a4ba3eca2d9b22f91c1 100644
--- a/cc/layer_tree_host.h
+++ b/cc/layer_tree_host.h
@@ -69,6 +69,7 @@ struct CC_EXPORT RendererCapabilities {
bool usingDiscardBackbuffer;
bool usingEglImage;
bool allowPartialTextureUpdates;
+ bool usingOffscreenContext3d;
int maxTextureSize;
bool avoidPow2Textures;
};
@@ -83,9 +84,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(); }
@@ -233,6 +233,7 @@ private:
bool m_animating;
bool m_needsFullTreeSync;
+ bool m_needsFilterContext;
base::CancelableClosure m_prepaintCallback;
@@ -277,8 +278,6 @@ private:
scoped_ptr<AnimationRegistrar> m_animationRegistrar;
- static bool s_needsFilterContext;
-
DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
};

Powered by Google App Engine
This is Rietveld 408576698