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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 public: | 42 public: |
43 // Must only be called once, e.g. on startup. Ownership of |instance| remains | 43 // Must only be called once, e.g. on startup. Ownership of |instance| remains |
44 // with the caller. | 44 // with the caller. |
45 static void SetInstance(SynchronousCompositorFactory* instance); | 45 static void SetInstance(SynchronousCompositorFactory* instance); |
46 static SynchronousCompositorFactory* GetInstance(); | 46 static SynchronousCompositorFactory* GetInstance(); |
47 | 47 |
48 virtual scoped_refptr<base::SingleThreadTaskRunner> | 48 virtual scoped_refptr<base::SingleThreadTaskRunner> |
49 GetCompositorTaskRunner() = 0; | 49 GetCompositorTaskRunner() = 0; |
50 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 50 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
51 int routing_id, | 51 int routing_id, |
| 52 uint32_t output_surface_id, |
52 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue, | 53 const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue, |
53 const scoped_refptr<cc::ContextProvider>& onscreen_context, | 54 const scoped_refptr<cc::ContextProvider>& onscreen_context, |
54 const scoped_refptr<cc::ContextProvider>& worker_context) = 0; | 55 const scoped_refptr<cc::ContextProvider>& worker_context) = 0; |
55 | 56 |
56 // The factory maintains ownership of the returned interface. | 57 // The factory maintains ownership of the returned interface. |
57 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; | 58 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; |
58 | 59 |
59 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 60 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
60 int routing_id) = 0; | 61 int routing_id) = 0; |
61 | 62 |
62 protected: | 63 protected: |
63 SynchronousCompositorFactory() {} | 64 SynchronousCompositorFactory() {} |
64 virtual ~SynchronousCompositorFactory() {} | 65 virtual ~SynchronousCompositorFactory() {} |
65 }; | 66 }; |
66 | 67 |
67 } // namespace content | 68 } // namespace content |
68 | 69 |
69 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 70 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
OLD | NEW |