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

Side by Side Diff: cc/layers/layer_impl.h

Issue 1565783002: Revert of Determine a layer's IsAffectedByPageScale property without using Layer Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/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_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 gfx::PointF position() const { return position_; } 350 gfx::PointF position() const { return position_; }
351 351
352 void SetIsContainerForFixedPositionLayers(bool container) { 352 void SetIsContainerForFixedPositionLayers(bool container) {
353 is_container_for_fixed_position_layers_ = container; 353 is_container_for_fixed_position_layers_ = container;
354 } 354 }
355 // This is a non-trivial function in Layer. 355 // This is a non-trivial function in Layer.
356 bool IsContainerForFixedPositionLayers() const { 356 bool IsContainerForFixedPositionLayers() const {
357 return is_container_for_fixed_position_layers_; 357 return is_container_for_fixed_position_layers_;
358 } 358 }
359 359
360 bool IsAffectedByPageScale() const; 360 bool IsAffectedByPageScale() const { return is_affected_by_page_scale_; }
361 void SetIsAffectedByPageScale(bool is_affected) {
362 is_affected_by_page_scale_ = is_affected;
363 }
361 364
362 gfx::Vector2dF FixedContainerSizeDelta() const; 365 gfx::Vector2dF FixedContainerSizeDelta() const;
363 366
364 void SetPositionConstraint(const LayerPositionConstraint& constraint) { 367 void SetPositionConstraint(const LayerPositionConstraint& constraint) {
365 position_constraint_ = constraint; 368 position_constraint_ = constraint;
366 } 369 }
367 const LayerPositionConstraint& position_constraint() const { 370 const LayerPositionConstraint& position_constraint() const {
368 return position_constraint_; 371 return position_constraint_;
369 } 372 }
370 373
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 bool layer_or_descendant_has_input_handler_; 904 bool layer_or_descendant_has_input_handler_;
902 bool sorted_for_recursion_; 905 bool sorted_for_recursion_;
903 bool is_hidden_from_property_trees_; 906 bool is_hidden_from_property_trees_;
904 907
905 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 908 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
906 }; 909 };
907 910
908 } // namespace cc 911 } // namespace cc
909 912
910 #endif // CC_LAYERS_LAYER_IMPL_H_ 913 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698