OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 public: | 45 public: |
46 // These methods should provide the dependencies for cc::LayerTreeHost for | 46 // These methods should provide the dependencies for cc::LayerTreeHost for |
47 // this compositor. | 47 // this compositor. |
48 virtual cc::LayerTreeSettings* GetLayerTreeSettings() = 0; | 48 virtual cc::LayerTreeSettings* GetLayerTreeSettings() = 0; |
49 virtual scoped_refptr<base::SingleThreadTaskRunner> | 49 virtual scoped_refptr<base::SingleThreadTaskRunner> |
50 GetCompositorTaskRunner() = 0; | 50 GetCompositorTaskRunner() = 0; |
51 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 51 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
52 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 52 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
53 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0; | 53 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0; |
54 virtual void DidCompleteSwapBuffers() = 0; | 54 virtual void DidCompleteSwapBuffers() = 0; |
55 virtual void DidCommitAndDrawFrame() = 0; | |
56 | 55 |
57 // Should send web gesture events which could not be handled locally by the | 56 // Should send web gesture events which could not be handled locally by the |
58 // compositor to the engine. | 57 // compositor to the engine. |
59 virtual void SendWebGestureEvent( | 58 virtual void SendWebGestureEvent( |
60 int render_widget_id, | 59 int render_widget_id, |
61 const blink::WebGestureEvent& gesture_event) = 0; | 60 const blink::WebGestureEvent& gesture_event) = 0; |
62 | 61 |
63 // Should send the compositor messages from the remote client LayerTreeHost of | 62 // Should send the compositor messages from the remote client LayerTreeHost of |
64 // this compositor to the corresponding remote server LayerTreeHost. | 63 // this compositor to the corresponding remote server LayerTreeHost. |
65 virtual void SendCompositorMessage( | 64 virtual void SendCompositorMessage( |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // widget. | 209 // widget. |
211 std::unique_ptr<BlimpInputManager> input_manager_; | 210 std::unique_ptr<BlimpInputManager> input_manager_; |
212 | 211 |
213 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); | 212 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); |
214 }; | 213 }; |
215 | 214 |
216 } // namespace client | 215 } // namespace client |
217 } // namespace blimp | 216 } // namespace blimp |
218 | 217 |
219 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 218 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
OLD | NEW |