| 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 |
| 397 void set_may_contain_video(bool yes) { may_contain_video_ = yes; } | 401 void set_may_contain_video(bool yes) { may_contain_video_ = yes; } |
| 398 bool may_contain_video() const { return may_contain_video_; } | 402 bool may_contain_video() const { return may_contain_video_; } |
| 399 | 403 |
| 400 // Layers that share a sorting context id will be sorted together in 3d | 404 // Layers that share a sorting context id will be sorted together in 3d |
| 401 // space. 0 is a special value that means this layer will not be sorted and | 405 // space. 0 is a special value that means this layer will not be sorted and |
| 402 // will be drawn in paint order. | 406 // will be drawn in paint order. |
| 403 int GetSortingContextId() const; | 407 int GetSortingContextId() const; |
| 404 | 408 |
| 405 // Get the correct invalidation region instead of conservative Rect | 409 // Get the correct invalidation region instead of conservative Rect |
| 406 // for layers that provide it. | 410 // for layers that provide it. |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 bool has_will_change_transform_hint_ : 1; | 570 bool has_will_change_transform_hint_ : 1; |
| 567 bool needs_push_properties_ : 1; | 571 bool needs_push_properties_ : 1; |
| 568 bool scrollbars_hidden_ : 1; | 572 bool scrollbars_hidden_ : 1; |
| 569 | 573 |
| 570 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 574 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 571 }; | 575 }; |
| 572 | 576 |
| 573 } // namespace cc | 577 } // namespace cc |
| 574 | 578 |
| 575 #endif // CC_LAYERS_LAYER_IMPL_H_ | 579 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |