| 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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_REGISTRY_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_REGISTRY_H_ |
| 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_REGISTRY_H_ | 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_REGISTRY_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 class SynchronousCompositorExternalBeginFrameSource; | |
| 12 class SynchronousCompositorOutputSurface; | 11 class SynchronousCompositorOutputSurface; |
| 13 | 12 |
| 14 class SynchronousCompositorRegistry { | 13 class SynchronousCompositorRegistry { |
| 15 public: | 14 public: |
| 16 virtual void RegisterOutputSurface( | 15 virtual void RegisterOutputSurface( |
| 17 int routing_id, | 16 int routing_id, |
| 18 SynchronousCompositorOutputSurface* output_surface) = 0; | 17 SynchronousCompositorOutputSurface* output_surface) = 0; |
| 19 virtual void UnregisterOutputSurface( | 18 virtual void UnregisterOutputSurface( |
| 20 int routing_id, | 19 int routing_id, |
| 21 SynchronousCompositorOutputSurface* output_surface) = 0; | 20 SynchronousCompositorOutputSurface* output_surface) = 0; |
| 22 virtual void RegisterBeginFrameSource( | |
| 23 int routing_id, | |
| 24 SynchronousCompositorExternalBeginFrameSource* begin_frame_source) = 0; | |
| 25 virtual void UnregisterBeginFrameSource( | |
| 26 int routing_id, | |
| 27 SynchronousCompositorExternalBeginFrameSource* begin_frame_source) = 0; | |
| 28 | 21 |
| 29 protected: | 22 protected: |
| 30 virtual ~SynchronousCompositorRegistry() {} | 23 virtual ~SynchronousCompositorRegistry() {} |
| 31 }; | 24 }; |
| 32 | 25 |
| 33 } // namespace content | 26 } // namespace content |
| 34 | 27 |
| 35 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_REGISTRY_H_ | 28 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_REGISTRY_H_ |
| OLD | NEW |