| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |