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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 // Get the correct invalidation region instead of conservative Rect | 412 // Get the correct invalidation region instead of conservative Rect |
413 // for layers that provide it. | 413 // for layers that provide it. |
414 virtual Region GetInvalidationRegionForDebugging(); | 414 virtual Region GetInvalidationRegionForDebugging(); |
415 | 415 |
416 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; | 416 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; |
417 | 417 |
418 int num_copy_requests_in_target_subtree(); | 418 int num_copy_requests_in_target_subtree(); |
419 | 419 |
420 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); | 420 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); |
421 | 421 |
422 bool IsHidden() const; | |
423 | |
424 float GetIdealContentsScale() const; | 422 float GetIdealContentsScale() const; |
425 | 423 |
426 bool was_ever_ready_since_last_transform_animation() const { | 424 bool was_ever_ready_since_last_transform_animation() const { |
427 return was_ever_ready_since_last_transform_animation_; | 425 return was_ever_ready_since_last_transform_animation_; |
428 } | 426 } |
429 | 427 |
430 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { | 428 void set_was_ever_ready_since_last_transform_animation(bool was_ready) { |
431 was_ever_ready_since_last_transform_animation_ = was_ready; | 429 was_ever_ready_since_last_transform_animation_ = was_ready; |
432 } | 430 } |
433 | 431 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 bool has_will_change_transform_hint_ : 1; | 556 bool has_will_change_transform_hint_ : 1; |
559 bool needs_push_properties_ : 1; | 557 bool needs_push_properties_ : 1; |
560 bool scrollbars_hidden_ : 1; | 558 bool scrollbars_hidden_ : 1; |
561 | 559 |
562 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 560 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
563 }; | 561 }; |
564 | 562 |
565 } // namespace cc | 563 } // namespace cc |
566 | 564 |
567 #endif // CC_LAYERS_LAYER_IMPL_H_ | 565 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |