| 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 int surface_id, | |
| 53 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0; | 52 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0; |
| 54 | 53 |
| 55 // The factory maintains ownership of the returned interface. | 54 // The factory maintains ownership of the returned interface. |
| 56 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; | 55 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; |
| 57 | 56 |
| 58 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 57 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 59 int routing_id) = 0; | 58 int routing_id) = 0; |
| 60 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( | 59 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( |
| 61 int frame_id) = 0; | 60 int frame_id) = 0; |
| 62 | 61 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 74 virtual gpu::GPUInfo GetGPUInfo() const = 0; | 73 virtual gpu::GPUInfo GetGPUInfo() const = 0; |
| 75 | 74 |
| 76 protected: | 75 protected: |
| 77 SynchronousCompositorFactory() {} | 76 SynchronousCompositorFactory() {} |
| 78 virtual ~SynchronousCompositorFactory() {} | 77 virtual ~SynchronousCompositorFactory() {} |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 } | 80 } |
| 82 | 81 |
| 83 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 82 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
| OLD | NEW |