| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual bool RecordFullLayer() = 0; | 50 virtual bool RecordFullLayer() = 0; |
| 51 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( | 51 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( |
| 52 int routing_id, | 52 int routing_id, |
| 53 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0; | 53 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0; |
| 54 | 54 |
| 55 // The factory maintains ownership of the returned interface. | 55 // The factory maintains ownership of the returned interface. |
| 56 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; | 56 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; |
| 57 | 57 |
| 58 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 58 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 59 int routing_id) = 0; | 59 int routing_id) = 0; |
| 60 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( |
| 61 int frame_id) = 0; |
| 60 | 62 |
| 63 // Methods below should not be called if OverrideWithFactory is false. |
| 64 // Instead, just fallback to default implementation, as if factory |
| 65 // does not exist. |
| 66 virtual bool OverrideWithFactory(); |
| 61 virtual scoped_refptr<cc_blink::ContextProviderWebContext> | 67 virtual scoped_refptr<cc_blink::ContextProviderWebContext> |
| 62 CreateOffscreenContextProvider( | 68 CreateOffscreenContextProvider( |
| 63 const blink::WebGraphicsContext3D::Attributes& attributes, | 69 const blink::WebGraphicsContext3D::Attributes& attributes, |
| 64 const std::string& debug_name) = 0; | 70 const std::string& debug_name) = 0; |
| 65 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( | |
| 66 int frame_id) = 0; | |
| 67 virtual gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl* | 71 virtual gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl* |
| 68 CreateOffscreenGraphicsContext3D( | 72 CreateOffscreenGraphicsContext3D( |
| 69 const blink::WebGraphicsContext3D::Attributes& attributes) = 0; | 73 const blink::WebGraphicsContext3D::Attributes& attributes) = 0; |
| 70 virtual gpu::GPUInfo GetGPUInfo() const = 0; | 74 virtual gpu::GPUInfo GetGPUInfo() const = 0; |
| 71 | 75 |
| 72 protected: | 76 protected: |
| 73 SynchronousCompositorFactory() {} | 77 SynchronousCompositorFactory() {} |
| 74 virtual ~SynchronousCompositorFactory() {} | 78 virtual ~SynchronousCompositorFactory() {} |
| 75 }; | 79 }; |
| 76 | 80 |
| 77 } | 81 } |
| 78 | 82 |
| 79 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 83 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
| OLD | NEW |