| 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; |
| 55 | 56 |
| 56 // Should send web gesture events which could not be handled locally by the | 57 // Should send web gesture events which could not be handled locally by the |
| 57 // compositor to the engine. | 58 // compositor to the engine. |
| 58 virtual void SendWebGestureEvent( | 59 virtual void SendWebGestureEvent( |
| 59 int render_widget_id, | 60 int render_widget_id, |
| 60 const blink::WebGestureEvent& gesture_event) = 0; | 61 const blink::WebGestureEvent& gesture_event) = 0; |
| 61 | 62 |
| 62 // Should send the compositor messages from the remote client LayerTreeHost of | 63 // Should send the compositor messages from the remote client LayerTreeHost of |
| 63 // this compositor to the corresponding remote server LayerTreeHost. | 64 // this compositor to the corresponding remote server LayerTreeHost. |
| 64 virtual void SendCompositorMessage( | 65 virtual void SendCompositorMessage( |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // widget. | 207 // widget. |
| 207 std::unique_ptr<BlimpInputManager> input_manager_; | 208 std::unique_ptr<BlimpInputManager> input_manager_; |
| 208 | 209 |
| 209 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); | 210 DISALLOW_COPY_AND_ASSIGN(BlimpCompositor); |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 } // namespace client | 213 } // namespace client |
| 213 } // namespace blimp | 214 } // namespace blimp |
| 214 | 215 |
| 215 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ | 216 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_COMPOSITOR_H_ |
| OLD | NEW |