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_IMPL_H_ | 5 #ifndef CC_LAYER_IMPL_H_ |
6 #define CC_LAYER_IMPL_H_ | 6 #define CC_LAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 virtual ScrollbarLayerImpl* toScrollbarLayer(); | 112 virtual ScrollbarLayerImpl* toScrollbarLayer(); |
113 | 113 |
114 // Returns true if this layer has content to draw. | 114 // Returns true if this layer has content to draw. |
115 void setDrawsContent(bool); | 115 void setDrawsContent(bool); |
116 bool drawsContent() const { return m_drawsContent; } | 116 bool drawsContent() const { return m_drawsContent; } |
117 | 117 |
118 bool forceRenderSurface() const { return m_forceRenderSurface; } | 118 bool forceRenderSurface() const { return m_forceRenderSurface; } |
119 void setForceRenderSurface(bool force) { m_forceRenderSurface = force; } | 119 void setForceRenderSurface(bool force) { m_forceRenderSurface = force; } |
120 | 120 |
| 121 void setVisible(bool); |
| 122 bool visible() const { return m_visible; } |
| 123 |
121 void setAnchorPoint(const gfx::PointF&); | 124 void setAnchorPoint(const gfx::PointF&); |
122 const gfx::PointF& anchorPoint() const { return m_anchorPoint; } | 125 const gfx::PointF& anchorPoint() const { return m_anchorPoint; } |
123 | 126 |
124 void setAnchorPointZ(float); | 127 void setAnchorPointZ(float); |
125 float anchorPointZ() const { return m_anchorPointZ; } | 128 float anchorPointZ() const { return m_anchorPointZ; } |
126 | 129 |
127 void setBackgroundColor(SkColor); | 130 void setBackgroundColor(SkColor); |
128 SkColor backgroundColor() const { return m_backgroundColor; } | 131 SkColor backgroundColor() const { return m_backgroundColor; } |
129 | 132 |
130 void setFilters(const WebKit::WebFilterOperations&); | 133 void setFilters(const WebKit::WebFilterOperations&); |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 float m_opacity; | 377 float m_opacity; |
375 gfx::PointF m_position; | 378 gfx::PointF m_position; |
376 bool m_preserves3D; | 379 bool m_preserves3D; |
377 bool m_useParentBackfaceVisibility; | 380 bool m_useParentBackfaceVisibility; |
378 bool m_drawCheckerboardForMissingTiles; | 381 bool m_drawCheckerboardForMissingTiles; |
379 gfx::Transform m_sublayerTransform; | 382 gfx::Transform m_sublayerTransform; |
380 gfx::Transform m_transform; | 383 gfx::Transform m_transform; |
381 | 384 |
382 bool m_drawsContent; | 385 bool m_drawsContent; |
383 bool m_forceRenderSurface; | 386 bool m_forceRenderSurface; |
| 387 bool m_visible; |
384 | 388 |
385 // Set for the layer that other layers are fixed to. | 389 // Set for the layer that other layers are fixed to. |
386 bool m_isContainerForFixedPositionLayers; | 390 bool m_isContainerForFixedPositionLayers; |
387 // This is true if the layer should be fixed to the closest ancestor contain
er. | 391 // This is true if the layer should be fixed to the closest ancestor contain
er. |
388 bool m_fixedToContainerLayer; | 392 bool m_fixedToContainerLayer; |
389 | 393 |
390 gfx::Vector2dF m_scrollDelta; | 394 gfx::Vector2dF m_scrollDelta; |
391 gfx::Vector2d m_sentScrollDelta; | 395 gfx::Vector2d m_sentScrollDelta; |
392 gfx::Vector2d m_maxScrollOffset; | 396 gfx::Vector2d m_maxScrollOffset; |
393 gfx::Transform m_implTransform; | 397 gfx::Transform m_implTransform; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // Group of properties that need to be computed based on the layer tree | 431 // Group of properties that need to be computed based on the layer tree |
428 // hierarchy before layers can be drawn. | 432 // hierarchy before layers can be drawn. |
429 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 433 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
430 | 434 |
431 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 435 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
432 }; | 436 }; |
433 | 437 |
434 } | 438 } |
435 | 439 |
436 #endif // CC_LAYER_IMPL_H_ | 440 #endif // CC_LAYER_IMPL_H_ |
OLD | NEW |