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

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

Issue 2822303003: cc : Compute subtree has copy requests before property tree building (Closed)
Patch Set: . 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 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 // space. 0 is a special value that means this layer will not be sorted and 401 // space. 0 is a special value that means this layer will not be sorted and
402 // will be drawn in paint order. 402 // will be drawn in paint order.
403 int GetSortingContextId() const; 403 int GetSortingContextId() const;
404 404
405 // Get the correct invalidation region instead of conservative Rect 405 // Get the correct invalidation region instead of conservative Rect
406 // for layers that provide it. 406 // for layers that provide it.
407 virtual Region GetInvalidationRegionForDebugging(); 407 virtual Region GetInvalidationRegionForDebugging();
408 408
409 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; 409 virtual gfx::Rect GetEnclosingRectInTargetSpace() const;
410 410
411 int num_copy_requests_in_target_subtree(); 411 bool has_copy_requests_in_target_subtree();
412 412
413 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); 413 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded();
414 414
415 float GetIdealContentsScale() const; 415 float GetIdealContentsScale() const;
416 416
417 bool was_ever_ready_since_last_transform_animation() const { 417 bool was_ever_ready_since_last_transform_animation() const {
418 return was_ever_ready_since_last_transform_animation_; 418 return was_ever_ready_since_last_transform_animation_;
419 } 419 }
420 420
421 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { 421 void set_was_ever_ready_since_last_transform_animation(bool was_ready) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar 556 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar
557 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. 557 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation.
558 bool needs_show_scrollbars_ : 1; 558 bool needs_show_scrollbars_ : 1;
559 559
560 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 560 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
561 }; 561 };
562 562
563 } // namespace cc 563 } // namespace cc
564 564
565 #endif // CC_LAYERS_LAYER_IMPL_H_ 565 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | cc/trees/draw_property_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698