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

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

Issue 2751783002: cc: Replace LayerIterator with iterator that walks layer list and effect tree (Closed)
Patch Set: Rebase 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
« no previous file with comments | « cc/layers/effect_tree_layer_list_iterator_unittest.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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 // Get the correct invalidation region instead of conservative Rect 409 // Get the correct invalidation region instead of conservative Rect
410 // for layers that provide it. 410 // for layers that provide it.
411 virtual Region GetInvalidationRegionForDebugging(); 411 virtual Region GetInvalidationRegionForDebugging();
412 412
413 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; 413 virtual gfx::Rect GetEnclosingRectInTargetSpace() const;
414 414
415 int num_copy_requests_in_target_subtree(); 415 int num_copy_requests_in_target_subtree();
416 416
417 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); 417 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded();
418 418
419 bool IsHidden() const;
420
421 float GetIdealContentsScale() const; 419 float GetIdealContentsScale() const;
422 420
423 bool was_ever_ready_since_last_transform_animation() const { 421 bool was_ever_ready_since_last_transform_animation() const {
424 return was_ever_ready_since_last_transform_animation_; 422 return was_ever_ready_since_last_transform_animation_;
425 } 423 }
426 424
427 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { 425 void set_was_ever_ready_since_last_transform_animation(bool was_ready) {
428 was_ever_ready_since_last_transform_animation_ = was_ready; 426 was_ever_ready_since_last_transform_animation_ = was_ready;
429 } 427 }
430 428
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar 561 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar
564 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. 562 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation.
565 bool needs_show_scrollbars_ : 1; 563 bool needs_show_scrollbars_ : 1;
566 564
567 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 565 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
568 }; 566 };
569 567
570 } // namespace cc 568 } // namespace cc
571 569
572 #endif // CC_LAYERS_LAYER_IMPL_H_ 570 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/effect_tree_layer_list_iterator_unittest.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698