Index: cc/layer_tree_host.h |
diff --git a/cc/layer_tree_host.h b/cc/layer_tree_host.h |
index a45c1c1ee1e1941313d8b85a4c1bfaad51a9fd0f..efe99b4c66c31660b743901487dfac16e98da449 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; |
}; |
@@ -82,9 +83,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 +229,7 @@ private: |
bool m_animating; |
bool m_needsFullTreeSync; |
+ bool m_needsFilterContext; |
base::CancelableClosure m_prepaintCallback; |
@@ -273,8 +274,6 @@ private: |
scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
- static bool s_needsFilterContext; |
- |
DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
}; |