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

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

Issue 2816063003: Replace layer id with Element id for tracking scrollbar animation controllers (Closed)
Patch Set: Address reviewer comments, pull element_id.h change to another patch Created 3 years, 8 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
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 } 396 }
397 397
398 // This is for tracking damage. 398 // This is for tracking damage.
399 void SetSubtreePropertyChanged(); 399 void SetSubtreePropertyChanged();
400 bool subtree_property_changed() const { return subtree_property_changed_; } 400 bool subtree_property_changed() const { return subtree_property_changed_; }
401 401
402 void SetMayContainVideo(bool yes); 402 void SetMayContainVideo(bool yes);
403 403
404 int num_copy_requests_in_target_subtree(); 404 int num_copy_requests_in_target_subtree();
405 405
406 // Stable identifier for clients. See comment in cc/trees/element_id.h.
406 void SetElementId(ElementId id); 407 void SetElementId(ElementId id);
407 ElementId element_id() const { return inputs_.element_id; } 408 ElementId element_id() const { return inputs_.element_id; }
408 409
409 void SetMutableProperties(uint32_t properties); 410 void SetMutableProperties(uint32_t properties);
410 uint32_t mutable_properties() const { return inputs_.mutable_properties; } 411 uint32_t mutable_properties() const { return inputs_.mutable_properties; }
411 412
412 bool HasTickingAnimationForTesting() const; 413 bool HasTickingAnimationForTesting() const;
413 414
414 void SetHasWillChangeTransformHint(bool has_will_change); 415 void SetHasWillChangeTransformHint(bool has_will_change);
415 bool has_will_change_transform_hint() const { 416 bool has_will_change_transform_hint() const {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 // These all act like draw properties, so don't need push properties. 638 // These all act like draw properties, so don't need push properties.
638 gfx::Rect visible_layer_rect_; 639 gfx::Rect visible_layer_rect_;
639 size_t num_unclipped_descendants_; 640 size_t num_unclipped_descendants_;
640 641
641 DISALLOW_COPY_AND_ASSIGN(Layer); 642 DISALLOW_COPY_AND_ASSIGN(Layer);
642 }; 643 };
643 644
644 } // namespace cc 645 } // namespace cc
645 646
646 #endif // CC_LAYERS_LAYER_H_ 647 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698