OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "gpu/config/gpu_info.h" | 10 #include "gpu/config/gpu_info.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 public: | 43 public: |
44 // Must only be called once, e.g. on startup. Ownership of |instance| remains | 44 // Must only be called once, e.g. on startup. Ownership of |instance| remains |
45 // with the caller. | 45 // with the caller. |
46 static void SetInstance(SynchronousCompositorFactory* instance); | 46 static void SetInstance(SynchronousCompositorFactory* instance); |
47 static SynchronousCompositorFactory* GetInstance(); | 47 static SynchronousCompositorFactory* GetInstance(); |
48 | 48 |
49 virtual scoped_refptr<base::SingleThreadTaskRunner> | 49 virtual scoped_refptr<base::SingleThreadTaskRunner> |
50 GetCompositorTaskRunner() = 0; | 50 GetCompositorTaskRunner() = 0; |
51 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 51 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
52 int routing_id, | 52 int routing_id, |
| 53 uint32_t output_surface_id, |
53 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue, | 54 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue, |
54 const scoped_refptr<cc::ContextProvider>& onscreen_context, | 55 const scoped_refptr<cc::ContextProvider>& onscreen_context, |
55 const scoped_refptr<cc::ContextProvider>& worker_context) = 0; | 56 const scoped_refptr<cc::ContextProvider>& worker_context) = 0; |
56 | 57 |
57 // The factory maintains ownership of the returned interface. | 58 // The factory maintains ownership of the returned interface. |
58 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; | 59 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; |
59 virtual SynchronousInputHandlerProxyClient* | 60 virtual SynchronousInputHandlerProxyClient* |
60 GetSynchronousInputHandlerProxyClient() = 0; | 61 GetSynchronousInputHandlerProxyClient() = 0; |
61 | 62 |
62 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 63 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
63 int routing_id) = 0; | 64 int routing_id) = 0; |
64 | 65 |
65 protected: | 66 protected: |
66 SynchronousCompositorFactory() {} | 67 SynchronousCompositorFactory() {} |
67 virtual ~SynchronousCompositorFactory() {} | 68 virtual ~SynchronousCompositorFactory() {} |
68 }; | 69 }; |
69 | 70 |
70 } // namespace content | 71 } // namespace content |
71 | 72 |
72 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 73 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
OLD | NEW |