OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_LAYER_TREE_HOST_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 void setDeviceScaleFactor(float); | 195 void setDeviceScaleFactor(float); |
196 float deviceScaleFactor() const { return m_deviceScaleFactor; } | 196 float deviceScaleFactor() const { return m_deviceScaleFactor; } |
197 | 197 |
198 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); } | 198 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); } |
199 | 199 |
200 Proxy* proxy() const { return m_proxy.get(); } | 200 Proxy* proxy() const { return m_proxy.get(); } |
201 | 201 |
202 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar
.get(); } | 202 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar
.get(); } |
203 | 203 |
| 204 bool blocksPendingCommit() const; |
| 205 |
204 protected: | 206 protected: |
205 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); | 207 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); |
206 bool initialize(scoped_ptr<Thread> implThread); | 208 bool initialize(scoped_ptr<Thread> implThread); |
207 bool initializeForTesting(scoped_ptr<Proxy> proxyForTesting); | 209 bool initializeForTesting(scoped_ptr<Proxy> proxyForTesting); |
208 | 210 |
209 private: | 211 private: |
210 typedef std::vector<scoped_refptr<Layer> > LayerList; | 212 typedef std::vector<scoped_refptr<Layer> > LayerList; |
211 | 213 |
212 bool initializeProxy(scoped_ptr<Proxy> proxy); | 214 bool initializeProxy(scoped_ptr<Proxy> proxy); |
213 void initializeRenderer(); | 215 void initializeRenderer(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 280 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
279 | 281 |
280 static bool s_needsFilterContext; | 282 static bool s_needsFilterContext; |
281 | 283 |
282 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 284 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
283 }; | 285 }; |
284 | 286 |
285 } // namespace cc | 287 } // namespace cc |
286 | 288 |
287 #endif // CC_LAYER_TREE_HOST_H_ | 289 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |