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

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: Rebase 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') | no next file with comments »
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 void SetMasksToBounds(bool masks_to_bounds); 144 void SetMasksToBounds(bool masks_to_bounds);
145 bool masks_to_bounds() const { return masks_to_bounds_; } 145 bool masks_to_bounds() const { return masks_to_bounds_; }
146 146
147 void SetContentsOpaque(bool opaque); 147 void SetContentsOpaque(bool opaque);
148 bool contents_opaque() const { return contents_opaque_; } 148 bool contents_opaque() const { return contents_opaque_; }
149 149
150 void SetOpacity(float opacity); 150 void SetOpacity(float opacity);
151 float opacity() const { return opacity_; } 151 float opacity() const { return opacity_; }
152 bool OpacityIsAnimating() const; 152 bool OpacityIsAnimating() const;
153 bool OpacityIsAnimatingOnImplOnly() const;
153 154
154 void SetPosition(gfx::PointF position); 155 void SetPosition(gfx::PointF position);
155 gfx::PointF position() const { return position_; } 156 gfx::PointF position() const { return position_; }
156 157
157 void SetIsContainerForFixedPositionLayers(bool container) { 158 void SetIsContainerForFixedPositionLayers(bool container) {
158 is_container_for_fixed_position_layers_ = container; 159 is_container_for_fixed_position_layers_ = container;
159 } 160 }
160 bool is_container_for_fixed_position_layers() const { 161 bool is_container_for_fixed_position_layers() const {
161 return is_container_for_fixed_position_layers_; 162 return is_container_for_fixed_position_layers_;
162 } 163 }
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 InputHandlerClient::ScrollStatus TryScroll( 321 InputHandlerClient::ScrollStatus TryScroll(
321 gfx::PointF screen_space_point, 322 gfx::PointF screen_space_point,
322 InputHandlerClient::ScrollInputType type) const; 323 InputHandlerClient::ScrollInputType type) const;
323 324
324 void SetDoubleSided(bool double_sided); 325 void SetDoubleSided(bool double_sided);
325 bool double_sided() const { return double_sided_; } 326 bool double_sided() const { return double_sided_; }
326 327
327 void SetTransform(const gfx::Transform& transform); 328 void SetTransform(const gfx::Transform& transform);
328 const gfx::Transform& transform() const { return transform_; } 329 const gfx::Transform& transform() const { return transform_; }
329 bool TransformIsAnimating() const; 330 bool TransformIsAnimating() const;
331 bool TransformIsAnimatingOnImplOnly() const;
330 332
331 void set_update_rect(const gfx::RectF& update_rect) { 333 void set_update_rect(const gfx::RectF& update_rect) {
332 update_rect_ = update_rect; 334 update_rect_ = update_rect;
333 } 335 }
334 const gfx::RectF& update_rect() const { return update_rect_; } 336 const gfx::RectF& update_rect() const { return update_rect_; }
335 337
336 std::string LayerTreeAsText() const; 338 std::string LayerTreeAsText() const;
337 virtual base::DictionaryValue* LayerTreeAsJson() const; 339 virtual base::DictionaryValue* LayerTreeAsJson() const;
338 340
339 void SetStackingOrderChanged(bool stacking_order_changed); 341 void SetStackingOrderChanged(bool stacking_order_changed);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 // Group of properties that need to be computed based on the layer tree 517 // Group of properties that need to be computed based on the layer tree
516 // hierarchy before layers can be drawn. 518 // hierarchy before layers can be drawn.
517 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; 519 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_;
518 520
519 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 521 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
520 }; 522 };
521 523
522 } 524 }
523 525
524 #endif // CC_LAYER_IMPL_H_ 526 #endif // CC_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698