| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 public LayerAnimationValueProvider, | 75 public LayerAnimationValueProvider, |
| 76 public AnimationDelegate { | 76 public AnimationDelegate { |
| 77 public: | 77 public: |
| 78 // Allows for the ownership of the total scroll offset to be delegated outside | 78 // Allows for the ownership of the total scroll offset to be delegated outside |
| 79 // of the layer. | 79 // of the layer. |
| 80 class ScrollOffsetDelegate { | 80 class ScrollOffsetDelegate { |
| 81 public: | 81 public: |
| 82 virtual void SetTotalScrollOffset(const gfx::ScrollOffset& new_value) = 0; | 82 virtual void SetTotalScrollOffset(const gfx::ScrollOffset& new_value) = 0; |
| 83 virtual gfx::ScrollOffset GetTotalScrollOffset() = 0; | 83 virtual gfx::ScrollOffset GetTotalScrollOffset() = 0; |
| 84 virtual bool IsExternalFlingActive() const = 0; | 84 virtual bool IsExternalFlingActive() const = 0; |
| 85 virtual void Update() const = 0; |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 typedef LayerImplList RenderSurfaceListType; | 88 typedef LayerImplList RenderSurfaceListType; |
| 88 typedef LayerImplList LayerListType; | 89 typedef LayerImplList LayerListType; |
| 89 typedef RenderSurfaceImpl RenderSurfaceType; | 90 typedef RenderSurfaceImpl RenderSurfaceType; |
| 90 | 91 |
| 91 enum RenderingContextConstants { NO_RENDERING_CONTEXT = 0 }; | 92 enum RenderingContextConstants { NO_RENDERING_CONTEXT = 0 }; |
| 92 | 93 |
| 93 static scoped_ptr<LayerImpl> Create(LayerTreeImpl* tree_impl, int id) { | 94 static scoped_ptr<LayerImpl> Create(LayerTreeImpl* tree_impl, int id) { |
| 94 return make_scoped_ptr(new LayerImpl(tree_impl, id)); | 95 return make_scoped_ptr(new LayerImpl(tree_impl, id)); |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 DrawProperties<LayerImpl> draw_properties_; | 718 DrawProperties<LayerImpl> draw_properties_; |
| 718 | 719 |
| 719 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; | 720 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; |
| 720 | 721 |
| 721 DISALLOW_COPY_AND_ASSIGN(LayerImpl); | 722 DISALLOW_COPY_AND_ASSIGN(LayerImpl); |
| 722 }; | 723 }; |
| 723 | 724 |
| 724 } // namespace cc | 725 } // namespace cc |
| 725 | 726 |
| 726 #endif // CC_LAYERS_LAYER_IMPL_H_ | 727 #endif // CC_LAYERS_LAYER_IMPL_H_ |
| OLD | NEW |