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 27 matching lines...) Expand all Loading... | |
38 }; | 38 }; |
39 } // namespace BASE_HASH_NAMESPACE | 39 } // namespace BASE_HASH_NAMESPACE |
40 #endif // COMPILER | 40 #endif // COMPILER |
41 | 41 |
42 namespace cc { | 42 namespace cc { |
43 | 43 |
44 class AnimationRegistrar; | 44 class AnimationRegistrar; |
45 class Layer; | 45 class Layer; |
46 class LayerTreeHostImpl; | 46 class LayerTreeHostImpl; |
47 class LayerTreeHostImplClient; | 47 class LayerTreeHostImplClient; |
48 class PicturePileImpl; | |
48 class PrioritizedResourceManager; | 49 class PrioritizedResourceManager; |
49 class ResourceUpdateQueue; | 50 class ResourceUpdateQueue; |
50 class HeadsUpDisplayLayer; | 51 class HeadsUpDisplayLayer; |
51 class Region; | 52 class Region; |
52 struct ScrollAndScaleSet; | 53 struct ScrollAndScaleSet; |
53 | 54 |
54 | 55 |
55 // Provides information on an Impl's rendering capabilities back to the LayerTre eHost | 56 // Provides information on an Impl's rendering capabilities back to the LayerTre eHost |
56 struct CC_EXPORT RendererCapabilities { | 57 struct CC_EXPORT RendererCapabilities { |
57 RendererCapabilities(); | 58 RendererCapabilities(); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
194 | 195 |
195 void setDeviceScaleFactor(float); | 196 void setDeviceScaleFactor(float); |
196 float deviceScaleFactor() const { return m_deviceScaleFactor; } | 197 float deviceScaleFactor() const { return m_deviceScaleFactor; } |
197 | 198 |
198 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); } | 199 HeadsUpDisplayLayer* hudLayer() const { return m_hudLayer.get(); } |
199 | 200 |
200 Proxy* proxy() const { return m_proxy.get(); } | 201 Proxy* proxy() const { return m_proxy.get(); } |
201 | 202 |
202 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar .get(); } | 203 AnimationRegistrar* animationRegistrar() const { return m_animationRegistrar .get(); } |
203 | 204 |
205 Layer* getNonCompositedContentRootLayer() const; | |
206 scoped_refptr<PicturePileImpl> capturePicturePile(const Layer* layer); | |
enne (OOO)
2013/01/02 19:35:22
I'd really prefer if this API was just capturePict
Leandro GraciĆ” Gil
2013/01/03 20:32:10
Done.
| |
207 | |
204 protected: | 208 protected: |
205 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); | 209 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); |
206 bool initialize(scoped_ptr<Thread> implThread); | 210 bool initialize(scoped_ptr<Thread> implThread); |
207 bool initializeForTesting(scoped_ptr<Proxy> proxyForTesting); | 211 bool initializeForTesting(scoped_ptr<Proxy> proxyForTesting); |
208 | 212 |
209 private: | 213 private: |
210 typedef std::vector<scoped_refptr<Layer> > LayerList; | 214 typedef std::vector<scoped_refptr<Layer> > LayerList; |
211 | 215 |
212 bool initializeProxy(scoped_ptr<Proxy> proxy); | 216 bool initializeProxy(scoped_ptr<Proxy> proxy); |
213 void initializeRenderer(); | 217 void initializeRenderer(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
278 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 282 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
279 | 283 |
280 static bool s_needsFilterContext; | 284 static bool s_needsFilterContext; |
281 | 285 |
282 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 286 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
283 }; | 287 }; |
284 | 288 |
285 } // namespace cc | 289 } // namespace cc |
286 | 290 |
287 #endif // CC_LAYER_TREE_HOST_H_ | 291 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |