Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: cc/layer_impl.h

Issue 12413020: Do not push properties that are animated on impl only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_impl.cc » ('j') | cc/layer_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_impl.cc » ('j') | cc/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698