| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 void setMasksToBounds(bool); | 139 void setMasksToBounds(bool); |
| 140 bool masksToBounds() const { return m_masksToBounds; } | 140 bool masksToBounds() const { return m_masksToBounds; } |
| 141 | 141 |
| 142 void setContentsOpaque(bool); | 142 void setContentsOpaque(bool); |
| 143 bool contentsOpaque() const { return m_contentsOpaque; } | 143 bool contentsOpaque() const { return m_contentsOpaque; } |
| 144 | 144 |
| 145 void setOpacity(float); | 145 void setOpacity(float); |
| 146 float opacity() const; | 146 float opacity() const; |
| 147 bool opacityIsAnimating() const; | 147 bool opacityIsAnimating() const; |
| 148 bool opacityIsAnimatingOnImplOnly() const; |
| 148 | 149 |
| 149 void setPosition(const gfx::PointF&); | 150 void setPosition(const gfx::PointF&); |
| 150 const gfx::PointF& position() const { return m_position; } | 151 const gfx::PointF& position() const { return m_position; } |
| 151 | 152 |
| 152 void setIsContainerForFixedPositionLayers(bool isContainerForFixedPositionLa
yers) { m_isContainerForFixedPositionLayers = isContainerForFixedPositionLayers;
} | 153 void setIsContainerForFixedPositionLayers(bool isContainerForFixedPositionLa
yers) { m_isContainerForFixedPositionLayers = isContainerForFixedPositionLayers;
} |
| 153 bool isContainerForFixedPositionLayers() const { return m_isContainerForFixe
dPositionLayers; } | 154 bool isContainerForFixedPositionLayers() const { return m_isContainerForFixe
dPositionLayers; } |
| 154 | 155 |
| 155 void setFixedToContainerLayer(bool fixedToContainerLayer = true) { m_fixedTo
ContainerLayer = fixedToContainerLayer;} | 156 void setFixedToContainerLayer(bool fixedToContainerLayer = true) { m_fixedTo
ContainerLayer = fixedToContainerLayer;} |
| 156 bool fixedToContainerLayer() const { return m_fixedToContainerLayer; } | 157 bool fixedToContainerLayer() const { return m_fixedToContainerLayer; } |
| 157 | 158 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 bool drawCheckerboardForMissingTiles() const; | 255 bool drawCheckerboardForMissingTiles() const; |
| 255 | 256 |
| 256 InputHandlerClient::ScrollStatus tryScroll(const gfx::PointF& screenSpacePoi
nt, InputHandlerClient::ScrollInputType) const; | 257 InputHandlerClient::ScrollStatus tryScroll(const gfx::PointF& screenSpacePoi
nt, InputHandlerClient::ScrollInputType) const; |
| 257 | 258 |
| 258 bool doubleSided() const { return m_doubleSided; } | 259 bool doubleSided() const { return m_doubleSided; } |
| 259 void setDoubleSided(bool); | 260 void setDoubleSided(bool); |
| 260 | 261 |
| 261 void setTransform(const gfx::Transform&); | 262 void setTransform(const gfx::Transform&); |
| 262 const gfx::Transform& transform() const; | 263 const gfx::Transform& transform() const; |
| 263 bool transformIsAnimating() const; | 264 bool transformIsAnimating() const; |
| 265 bool transformIsAnimatingOnImplOnly() const; |
| 264 | 266 |
| 265 const gfx::RectF& updateRect() const { return m_updateRect; } | 267 const gfx::RectF& updateRect() const { return m_updateRect; } |
| 266 void setUpdateRect(const gfx::RectF& updateRect) { m_updateRect = updateRect
; } | 268 void setUpdateRect(const gfx::RectF& updateRect) { m_updateRect = updateRect
; } |
| 267 | 269 |
| 268 std::string layerTreeAsText() const; | 270 std::string layerTreeAsText() const; |
| 269 virtual base::DictionaryValue* layerTreeAsJson() const; | 271 virtual base::DictionaryValue* layerTreeAsJson() const; |
| 270 | 272 |
| 271 void setStackingOrderChanged(bool); | 273 void setStackingOrderChanged(bool); |
| 272 | 274 |
| 273 bool layerPropertyChanged() const { return m_layerPropertyChanged || layerIs
AlwaysDamaged(); } | 275 bool layerPropertyChanged() const { return m_layerPropertyChanged || layerIs
AlwaysDamaged(); } |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 // Group of properties that need to be computed based on the layer tree | 434 // Group of properties that need to be computed based on the layer tree |
| 433 // hierarchy before layers can be drawn. | 435 // hierarchy before layers can be drawn. |
| 434 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; | 436 DrawProperties<LayerImpl, RenderSurfaceImpl> m_drawProperties; |
| 435 | 437 |
| 436 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 438 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 437 }; | 439 }; |
| 438 | 440 |
| 439 } | 441 } |
| 440 | 442 |
| 441 #endif // CC_LAYER_IMPL_H_ | 443 #endif // CC_LAYER_IMPL_H_ |
| OLD | NEW |