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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 | 432 |
433 void SetHasWillChangeTransformHint(bool has_will_change); | 433 void SetHasWillChangeTransformHint(bool has_will_change); |
434 bool has_will_change_transform_hint() const { | 434 bool has_will_change_transform_hint() const { |
435 return has_will_change_transform_hint_; | 435 return has_will_change_transform_hint_; |
436 } | 436 } |
437 | 437 |
438 MutatorHost* GetMutatorHost() const; | 438 MutatorHost* GetMutatorHost() const; |
439 | 439 |
440 ElementListType GetElementTypeForAnimation() const; | 440 ElementListType GetElementTypeForAnimation() const; |
441 | 441 |
| 442 void set_needs_show_scrollbars(bool yes) { needs_show_scrollbars_ = yes; } |
| 443 bool needs_show_scrollbars() { return needs_show_scrollbars_; } |
| 444 |
442 protected: | 445 protected: |
443 LayerImpl(LayerTreeImpl* layer_impl, | 446 LayerImpl(LayerTreeImpl* layer_impl, |
444 int id, | 447 int id, |
445 scoped_refptr<SyncedScrollOffset> scroll_offset); | 448 scoped_refptr<SyncedScrollOffset> scroll_offset); |
446 LayerImpl(LayerTreeImpl* layer_impl, int id); | 449 LayerImpl(LayerTreeImpl* layer_impl, int id); |
447 | 450 |
448 // Get the color and size of the layer's debug border. | 451 // Get the color and size of the layer's debug border. |
449 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; | 452 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; |
450 | 453 |
451 void AppendDebugBorderQuad(RenderPass* render_pass, | 454 void AppendDebugBorderQuad(RenderPass* render_pass, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 PerformanceProperties<LayerImpl> performance_properties_; | 552 PerformanceProperties<LayerImpl> performance_properties_; |
550 | 553 |
551 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 554 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
552 owned_debug_info_; | 555 owned_debug_info_; |
553 base::trace_event::ConvertableToTraceFormat* debug_info_; | 556 base::trace_event::ConvertableToTraceFormat* debug_info_; |
554 | 557 |
555 bool has_will_change_transform_hint_ : 1; | 558 bool has_will_change_transform_hint_ : 1; |
556 bool needs_push_properties_ : 1; | 559 bool needs_push_properties_ : 1; |
557 bool scrollbars_hidden_ : 1; | 560 bool scrollbars_hidden_ : 1; |
558 | 561 |
| 562 // The needs_show_scrollbars_ bit tracks a pending request from Blink to show |
| 563 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar |
| 564 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. |
| 565 bool needs_show_scrollbars_ : 1; |
| 566 |
559 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 567 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
560 }; | 568 }; |
561 | 569 |
562 } // namespace cc | 570 } // namespace cc |
563 | 571 |
564 #endif // CC_LAYERS_LAYER_IMPL_H_ | 572 #endif // CC_LAYERS_LAYER_IMPL_H_ |
OLD | NEW |