| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |