OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_H_ | 5 #ifndef CC_LAYER_H_ |
6 #define CC_LAYER_H_ | 6 #define CC_LAYER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // When true, the layer's contents are not scaled by the current page scale
factor. | 247 // When true, the layer's contents are not scaled by the current page scale
factor. |
248 // setBoundsContainPageScale recursively sets the value on all child layers. | 248 // setBoundsContainPageScale recursively sets the value on all child layers. |
249 void setBoundsContainPageScale(bool); | 249 void setBoundsContainPageScale(bool); |
250 bool boundsContainPageScale() const { return m_boundsContainPageScale; } | 250 bool boundsContainPageScale() const { return m_boundsContainPageScale; } |
251 | 251 |
252 LayerTreeHost* layerTreeHost() const { return m_layerTreeHost; } | 252 LayerTreeHost* layerTreeHost() const { return m_layerTreeHost; } |
253 | 253 |
254 // Set the priority of all desired textures in this layer. | 254 // Set the priority of all desired textures in this layer. |
255 virtual void setTexturePriorities(const PriorityCalculator&) { } | 255 virtual void setTexturePriorities(const PriorityCalculator&) { } |
256 | 256 |
257 bool addAnimation(scoped_ptr<Animation>); | 257 bool AddAnimation(scoped_ptr<Animation>); |
258 void pauseAnimation(int animationId, double timeOffset); | 258 void PauseAnimation(int animationId, double timeOffset); |
259 void removeAnimation(int animationId); | 259 void RemoveAnimation(int animationId); |
260 | 260 |
261 void suspendAnimations(double monotonicTime); | 261 void suspendAnimations(double monotonicTime); |
262 void resumeAnimations(double monotonicTime); | 262 void resumeAnimations(double monotonicTime); |
263 | 263 |
264 LayerAnimationController* layerAnimationController() { return m_layerAnimati
onController.get(); } | 264 LayerAnimationController* layerAnimationController() { return m_layerAnimati
onController.get(); } |
265 void setLayerAnimationController(scoped_refptr<LayerAnimationController>); | 265 void setLayerAnimationController(scoped_refptr<LayerAnimationController>); |
266 scoped_refptr<LayerAnimationController> releaseLayerAnimationController(); | 266 scoped_refptr<LayerAnimationController> releaseLayerAnimationController(); |
267 | 267 |
268 void setLayerAnimationDelegate(WebKit::WebAnimationDelegate* layerAnimationD
elegate) { m_layerAnimationDelegate = layerAnimationDelegate; } | 268 void setLayerAnimationDelegate(WebKit::WebAnimationDelegate* layerAnimationD
elegate) { m_layerAnimationDelegate = layerAnimationDelegate; } |
269 | 269 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 WebKit::WebLayerScrollClient* m_layerScrollClient; | 404 WebKit::WebLayerScrollClient* m_layerScrollClient; |
405 | 405 |
406 DrawProperties<Layer, RenderSurface> m_drawProperties; | 406 DrawProperties<Layer, RenderSurface> m_drawProperties; |
407 }; | 407 }; |
408 | 408 |
409 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 409 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
410 | 410 |
411 } // namespace cc | 411 } // namespace cc |
412 | 412 |
413 #endif // CC_LAYER_H_ | 413 #endif // CC_LAYER_H_ |
OLD | NEW |