| 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info); | 387 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> debug_info); |
| 388 | 388 |
| 389 void set_is_drawn_render_surface_layer_list_member(bool is_member) { | 389 void set_is_drawn_render_surface_layer_list_member(bool is_member) { |
| 390 is_drawn_render_surface_layer_list_member_ = is_member; | 390 is_drawn_render_surface_layer_list_member_ = is_member; |
| 391 } | 391 } |
| 392 | 392 |
| 393 bool is_drawn_render_surface_layer_list_member() const { | 393 bool is_drawn_render_surface_layer_list_member() const { |
| 394 return is_drawn_render_surface_layer_list_member_; | 394 return is_drawn_render_surface_layer_list_member_; |
| 395 } | 395 } |
| 396 | 396 |
| 397 bool IsDrawnScrollbar() { | |
| 398 return ToScrollbarLayer() && is_drawn_render_surface_layer_list_member_; | |
| 399 } | |
| 400 | |
| 401 void set_may_contain_video(bool yes) { may_contain_video_ = yes; } | 397 void set_may_contain_video(bool yes) { may_contain_video_ = yes; } |
| 402 bool may_contain_video() const { return may_contain_video_; } | 398 bool may_contain_video() const { return may_contain_video_; } |
| 403 | 399 |
| 404 // Layers that share a sorting context id will be sorted together in 3d | 400 // Layers that share a sorting context id will be sorted together in 3d |
| 405 // 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 |
| 406 // will be drawn in paint order. | 402 // will be drawn in paint order. |
| 407 int GetSortingContextId() const; | 403 int GetSortingContextId() const; |
| 408 | 404 |
| 409 // Get the correct invalidation region instead of conservative Rect | 405 // Get the correct invalidation region instead of conservative Rect |
| 410 // for layers that provide it. | 406 // for layers that provide it. |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 bool has_will_change_transform_hint_ : 1; | 566 bool has_will_change_transform_hint_ : 1; |
| 571 bool needs_push_properties_ : 1; | 567 bool needs_push_properties_ : 1; |
| 572 bool scrollbars_hidden_ : 1; | 568 bool scrollbars_hidden_ : 1; |
| 573 | 569 |
| 574 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 570 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 575 }; | 571 }; |
| 576 | 572 |
| 577 } // namespace cc | 573 } // namespace cc |
| 578 | 574 |
| 579 #endif // CC_LAYERS_LAYER_IMPL_H_ | 575 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |