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_TREES_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <bitset> | 10 #include <bitset> |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 class Viewport; | 78 class Viewport; |
79 | 79 |
80 using BeginFrameCallbackList = std::vector<base::Closure>; | 80 using BeginFrameCallbackList = std::vector<base::Closure>; |
81 | 81 |
82 enum class GpuRasterizationStatus { | 82 enum class GpuRasterizationStatus { |
83 ON, | 83 ON, |
84 ON_FORCED, | 84 ON_FORCED, |
85 OFF_DEVICE, | 85 OFF_DEVICE, |
86 OFF_VIEWPORT, | 86 OFF_VIEWPORT, |
87 MSAA_CONTENT, | 87 MSAA_CONTENT, |
88 OFF_CONTENT | |
89 }; | 88 }; |
90 | 89 |
91 // LayerTreeHost->Proxy callback interface. | 90 // LayerTreeHost->Proxy callback interface. |
92 class LayerTreeHostImplClient { | 91 class LayerTreeHostImplClient { |
93 public: | 92 public: |
94 virtual void DidLoseCompositorFrameSinkOnImplThread() = 0; | 93 virtual void DidLoseCompositorFrameSinkOnImplThread() = 0; |
95 virtual void SetBeginFrameSource(BeginFrameSource* source) = 0; | 94 virtual void SetBeginFrameSource(BeginFrameSource* source) = 0; |
96 virtual void DidReceiveCompositorFrameAckOnImplThread() = 0; | 95 virtual void DidReceiveCompositorFrameAckOnImplThread() = 0; |
97 virtual void OnCanDrawStateChanged(bool can_draw) = 0; | 96 virtual void OnCanDrawStateChanged(bool can_draw) = 0; |
98 virtual void NotifyReadyToActivate() = 0; | 97 virtual void NotifyReadyToActivate() = 0; |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 // These callbacks are stored here to be transfered to the main thread when we | 851 // These callbacks are stored here to be transfered to the main thread when we |
853 // begin main frame. These callbacks must only be called on the main thread. | 852 // begin main frame. These callbacks must only be called on the main thread. |
854 std::vector<base::Closure> completed_image_decode_callbacks_; | 853 std::vector<base::Closure> completed_image_decode_callbacks_; |
855 | 854 |
856 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 855 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
857 }; | 856 }; |
858 | 857 |
859 } // namespace cc | 858 } // namespace cc |
860 | 859 |
861 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 860 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |