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 class SynchronousCompositorFrameSink; |
11 class SynchronousCompositorOutputSurface; | |
12 | 11 |
13 class SynchronousCompositorRegistry { | 12 class SynchronousCompositorRegistry { |
14 public: | 13 public: |
15 virtual void RegisterOutputSurface( | 14 virtual void RegisterCompositorFrameSink( |
16 int routing_id, | 15 int routing_id, |
17 SynchronousCompositorOutputSurface* output_surface) = 0; | 16 SynchronousCompositorFrameSink* compositor_frame_sink) = 0; |
18 virtual void UnregisterOutputSurface( | 17 virtual void UnregisterCompositorFrameSink( |
19 int routing_id, | 18 int routing_id, |
20 SynchronousCompositorOutputSurface* output_surface) = 0; | 19 SynchronousCompositorFrameSink* compositor_frame_sink) = 0; |
21 | 20 |
22 protected: | 21 protected: |
23 virtual ~SynchronousCompositorRegistry() {} | 22 virtual ~SynchronousCompositorRegistry() {} |
24 }; | 23 }; |
25 | 24 |
26 } // namespace content | 25 } // namespace content |
27 | 26 |
28 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_REGISTRY_H_ | 27 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_REGISTRY_H_ |
OLD | NEW |