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 "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 10 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class MessageLoopProxy; | 13 class MessageLoopProxy; |
14 } | 14 } |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 class BeginFrameSource; | 17 class BeginFrameSource; |
18 class ContextProvider; | 18 class ContextProvider; |
19 class OutputSurface; | 19 class OutputSurface; |
20 } | 20 } |
21 | 21 |
| 22 namespace gpu_blink { |
| 23 class WebGraphicsContext3DInProcessCommandBufferImpl; |
| 24 } |
| 25 |
22 namespace webkit { | 26 namespace webkit { |
23 namespace gpu { | 27 namespace gpu { |
24 class ContextProviderWebContext; | 28 class ContextProviderWebContext; |
25 class WebGraphicsContext3DInProcessCommandBufferImpl; | |
26 } | 29 } |
27 } | 30 } |
28 | 31 |
29 namespace content { | 32 namespace content { |
30 | 33 |
31 class InputHandlerManagerClient; | 34 class InputHandlerManagerClient; |
32 class StreamTextureFactory; | 35 class StreamTextureFactory; |
33 class FrameSwapMessageQueue; | 36 class FrameSwapMessageQueue; |
34 | 37 |
35 // Decouples creation from usage of the parts needed for the synchonous | 38 // Decouples creation from usage of the parts needed for the synchonous |
(...skipping 19 matching lines...) Expand all Loading... |
55 | 58 |
56 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 59 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
57 int routing_id) = 0; | 60 int routing_id) = 0; |
58 | 61 |
59 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> | 62 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> |
60 CreateOffscreenContextProvider( | 63 CreateOffscreenContextProvider( |
61 const blink::WebGraphicsContext3D::Attributes& attributes, | 64 const blink::WebGraphicsContext3D::Attributes& attributes, |
62 const std::string& debug_name) = 0; | 65 const std::string& debug_name) = 0; |
63 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( | 66 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( |
64 int frame_id) = 0; | 67 int frame_id) = 0; |
65 virtual webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl* | 68 virtual gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl* |
66 CreateOffscreenGraphicsContext3D( | 69 CreateOffscreenGraphicsContext3D( |
67 const blink::WebGraphicsContext3D::Attributes& attributes) = 0; | 70 const blink::WebGraphicsContext3D::Attributes& attributes) = 0; |
68 | 71 |
69 protected: | 72 protected: |
70 SynchronousCompositorFactory() {} | 73 SynchronousCompositorFactory() {} |
71 virtual ~SynchronousCompositorFactory() {} | 74 virtual ~SynchronousCompositorFactory() {} |
72 }; | 75 }; |
73 | 76 |
74 } | 77 } |
75 | 78 |
76 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ | 79 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ |
OLD | NEW |