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

Unified Diff: cc/layer_tree_host_impl.h

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address code review comments and fix all cc_unittests Created 8 years, 2 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_impl.h
diff --git a/cc/layer_tree_host_impl.h b/cc/layer_tree_host_impl.h
index 17ef60207113593965922e6b687f0a842da66030..9b64de7859ba5d3caf785b73623d3c253af57d21 100644
--- a/cc/layer_tree_host_impl.h
+++ b/cc/layer_tree_host_impl.h
@@ -103,7 +103,7 @@ class LayerTreeHostImpl : public InputHandlerClient,
typedef std::vector<LayerImpl*> LayerList;
public:
- static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerTreeHostImplClient*);
+ static scoped_ptr<LayerTreeHostImpl> create(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*);
virtual ~LayerTreeHostImpl();
// InputHandlerClient implementation
@@ -229,6 +229,7 @@ public:
FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); }
DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get(); }
ResourceProvider* resourceProvider() const { return m_resourceProvider.get(); }
+ Proxy* proxy() const { return m_proxy; }
class CullRenderPassesWithCachedTextures {
public:
@@ -261,7 +262,7 @@ public:
static void removeRenderPasses(RenderPassCuller, FrameData&);
protected:
- LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*);
+ LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy*);
void animatePageScale(double monotonicTime);
void animateScrollbars(double monotonicTime);
@@ -276,6 +277,7 @@ protected:
virtual base::TimeDelta lowFrequencyAnimationInterval() const;
LayerTreeHostImplClient* m_client;
+ Proxy* m_proxy;
int m_sourceFrameNumber;
private:

Powered by Google App Engine
This is Rietveld 408576698