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 CCLayerImpl_h | 5 #ifndef CCLayerImpl_h |
6 #define CCLayerImpl_h | 6 #define CCLayerImpl_h |
7 | 7 |
8 #include "CCInputHandler.h" | 8 #include "CCInputHandler.h" |
9 #include "CCLayerAnimationController.h" | 9 #include "CCLayerAnimationController.h" |
10 #include "CCRenderPass.h" | 10 #include "CCRenderPass.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 void setFilters(const WebKit::WebFilterOperations&); | 108 void setFilters(const WebKit::WebFilterOperations&); |
109 const WebKit::WebFilterOperations& filters() const { return m_filters; } | 109 const WebKit::WebFilterOperations& filters() const { return m_filters; } |
110 | 110 |
111 void setBackgroundFilters(const WebKit::WebFilterOperations&); | 111 void setBackgroundFilters(const WebKit::WebFilterOperations&); |
112 const WebKit::WebFilterOperations& backgroundFilters() const { return m_back
groundFilters; } | 112 const WebKit::WebFilterOperations& backgroundFilters() const { return m_back
groundFilters; } |
113 | 113 |
114 void setMasksToBounds(bool); | 114 void setMasksToBounds(bool); |
115 bool masksToBounds() const { return m_masksToBounds; } | 115 bool masksToBounds() const { return m_masksToBounds; } |
116 | 116 |
117 void setOpaque(bool); | 117 void setContentsOpaque(bool); |
118 bool opaque() const { return m_opaque; } | 118 bool contentsOpaque() const { return m_contentsOpaque; } |
119 | 119 |
120 void setOpacity(float); | 120 void setOpacity(float); |
121 bool opacityIsAnimating() const; | 121 bool opacityIsAnimating() const; |
122 | 122 |
123 void setPosition(const FloatPoint&); | 123 void setPosition(const FloatPoint&); |
124 const FloatPoint& position() const { return m_position; } | 124 const FloatPoint& position() const { return m_position; } |
125 | 125 |
126 void setIsContainerForFixedPositionLayers(bool isContainerForFixedPositionLa
yers) { m_isContainerForFixedPositionLayers = isContainerForFixedPositionLayers;
} | 126 void setIsContainerForFixedPositionLayers(bool isContainerForFixedPositionLa
yers) { m_isContainerForFixedPositionLayers = isContainerForFixedPositionLayers;
} |
127 bool isContainerForFixedPositionLayers() const { return m_isContainerForFixe
dPositionLayers; } | 127 bool isContainerForFixedPositionLayers() const { return m_isContainerForFixe
dPositionLayers; } |
128 | 128 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 312 |
313 // Indicates that a property has changed on this layer that would not | 313 // Indicates that a property has changed on this layer that would not |
314 // affect the pixels on its target surface, but would require redrawing | 314 // affect the pixels on its target surface, but would require redrawing |
315 // but would require redrawing the targetSurface onto its ancestor targetSur
face. | 315 // but would require redrawing the targetSurface onto its ancestor targetSur
face. |
316 // For layers that do not own a surface this flag acts as m_layerPropertyCha
nged. | 316 // For layers that do not own a surface this flag acts as m_layerPropertyCha
nged. |
317 bool m_layerSurfacePropertyChanged; | 317 bool m_layerSurfacePropertyChanged; |
318 | 318 |
319 // Uses layer's content space. | 319 // Uses layer's content space. |
320 IntRect m_visibleContentRect; | 320 IntRect m_visibleContentRect; |
321 bool m_masksToBounds; | 321 bool m_masksToBounds; |
322 bool m_opaque; | 322 bool m_contentsOpaque; |
323 float m_opacity; | 323 float m_opacity; |
324 FloatPoint m_position; | 324 FloatPoint m_position; |
325 bool m_preserves3D; | 325 bool m_preserves3D; |
326 bool m_useParentBackfaceVisibility; | 326 bool m_useParentBackfaceVisibility; |
327 bool m_drawCheckerboardForMissingTiles; | 327 bool m_drawCheckerboardForMissingTiles; |
328 WebKit::WebTransformationMatrix m_sublayerTransform; | 328 WebKit::WebTransformationMatrix m_sublayerTransform; |
329 WebKit::WebTransformationMatrix m_transform; | 329 WebKit::WebTransformationMatrix m_transform; |
330 bool m_useLCDText; | 330 bool m_useLCDText; |
331 | 331 |
332 bool m_drawsContent; | 332 bool m_drawsContent; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 390 |
391 // Manages scrollbars for this layer | 391 // Manages scrollbars for this layer |
392 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController; | 392 OwnPtr<CCScrollbarAnimationController> m_scrollbarAnimationController; |
393 }; | 393 }; |
394 | 394 |
395 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter
ator end, CCLayerSorter*); | 395 void sortLayers(Vector<CCLayerImpl*>::iterator first, Vector<CCLayerImpl*>::iter
ator end, CCLayerSorter*); |
396 | 396 |
397 } | 397 } |
398 | 398 |
399 #endif // CCLayerImpl_h | 399 #endif // CCLayerImpl_h |
OLD | NEW |