| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 416 |
| 417 void Set3dSortingContextId(int id); | 417 void Set3dSortingContextId(int id); |
| 418 int sorting_context_id() { return sorting_context_id_; } | 418 int sorting_context_id() { return sorting_context_id_; } |
| 419 | 419 |
| 420 // Get the correct invalidation region instead of conservative Rect | 420 // Get the correct invalidation region instead of conservative Rect |
| 421 // for layers that provide it. | 421 // for layers that provide it. |
| 422 virtual Region GetInvalidationRegionForDebugging(); | 422 virtual Region GetInvalidationRegionForDebugging(); |
| 423 | 423 |
| 424 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; | 424 virtual gfx::Rect GetEnclosingRectInTargetSpace() const; |
| 425 | 425 |
| 426 void set_scrolls_drawn_descendant(bool scrolls_drawn_descendant) { | |
| 427 scrolls_drawn_descendant_ = scrolls_drawn_descendant; | |
| 428 } | |
| 429 | |
| 430 bool scrolls_drawn_descendant() { return scrolls_drawn_descendant_; } | |
| 431 | |
| 432 int num_copy_requests_in_target_subtree(); | 426 int num_copy_requests_in_target_subtree(); |
| 433 | 427 |
| 434 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); | 428 void UpdatePropertyTreeForScrollingAndAnimationIfNeeded(); |
| 435 | 429 |
| 436 bool IsHidden() const; | 430 bool IsHidden() const; |
| 437 | 431 |
| 438 float GetIdealContentsScale() const; | 432 float GetIdealContentsScale() const; |
| 439 | 433 |
| 440 bool was_ever_ready_since_last_transform_animation() const { | 434 bool was_ever_ready_since_last_transform_animation() const { |
| 441 return was_ever_ready_since_last_transform_animation_; | 435 return was_ever_ready_since_last_transform_animation_; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 DrawProperties draw_properties_; | 567 DrawProperties draw_properties_; |
| 574 PerformanceProperties<LayerImpl> performance_properties_; | 568 PerformanceProperties<LayerImpl> performance_properties_; |
| 575 | 569 |
| 576 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 570 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
| 577 owned_debug_info_; | 571 owned_debug_info_; |
| 578 base::trace_event::ConvertableToTraceFormat* debug_info_; | 572 base::trace_event::ConvertableToTraceFormat* debug_info_; |
| 579 std::unique_ptr<RenderSurfaceImpl> render_surface_; | 573 std::unique_ptr<RenderSurfaceImpl> render_surface_; |
| 580 gfx::Size preferred_raster_bounds_; | 574 gfx::Size preferred_raster_bounds_; |
| 581 | 575 |
| 582 bool has_preferred_raster_bounds_ : 1; | 576 bool has_preferred_raster_bounds_ : 1; |
| 583 bool scrolls_drawn_descendant_ : 1; | |
| 584 bool has_will_change_transform_hint_ : 1; | 577 bool has_will_change_transform_hint_ : 1; |
| 585 bool needs_push_properties_ : 1; | 578 bool needs_push_properties_ : 1; |
| 586 bool scrollbars_hidden_ : 1; | 579 bool scrollbars_hidden_ : 1; |
| 587 | 580 |
| 588 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 581 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 589 }; | 582 }; |
| 590 | 583 |
| 591 } // namespace cc | 584 } // namespace cc |
| 592 | 585 |
| 593 #endif // CC_LAYERS_LAYER_IMPL_H_ | 586 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |