| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); } | 193 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); } |
| 194 | 194 |
| 195 Proxy* proxy() const { return m_proxy.get(); } | 195 Proxy* proxy() const { return m_proxy.get(); } |
| 196 | 196 |
| 197 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar
.get(); } | 197 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar
.get(); } |
| 198 | 198 |
| 199 skia::RefPtr<SkPicture> capturePicture(); | 199 skia::RefPtr<SkPicture> capturePicture(); |
| 200 | 200 |
| 201 bool blocksPendingCommit() const; | 201 bool blocksPendingCommit() const; |
| 202 | 202 |
| 203 // Obtains a thorough dump of the LayerTreeHost as a value. |
| 204 scoped_ptr<base::Value> asValue() const; |
| 205 |
| 203 protected: | 206 protected: |
| 204 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); | 207 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); |
| 205 bool initialize(scoped_ptr<Thread> implThread); | 208 bool initialize(scoped_ptr<Thread> implThread); |
| 206 bool initializeForTesting(scoped_ptr<Proxy> proxyForTesting); | 209 bool initializeForTesting(scoped_ptr<Proxy> proxyForTesting); |
| 207 | 210 |
| 208 private: | 211 private: |
| 209 typedef std::vector<scoped_refptr<Layer> > LayerList; | 212 typedef std::vector<scoped_refptr<Layer> > LayerList; |
| 210 | 213 |
| 211 bool initializeProxy(scoped_ptr<Proxy> proxy); | 214 bool initializeProxy(scoped_ptr<Proxy> proxy); |
| 212 void initializeRenderer(); | 215 void initializeRenderer(); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 277 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 275 | 278 |
| 276 static bool s_needsFilterContext; | 279 static bool s_needsFilterContext; |
| 277 | 280 |
| 278 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 281 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 279 }; | 282 }; |
| 280 | 283 |
| 281 } // namespace cc | 284 } // namespace cc |
| 282 | 285 |
| 283 #endif // CC_LAYER_TREE_HOST_H_ | 286 #endif // CC_LAYER_TREE_HOST_H_ |
| OLD | NEW |