Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: content/renderer/android/synchronous_compositor_factory.h

Issue 890873007: Cleanup: Move ContextProviderWebContext into cc/blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 cc_blink {
23 class ContextProviderWebContext;
24 }
25
22 namespace gpu_blink { 26 namespace gpu_blink {
23 class WebGraphicsContext3DInProcessCommandBufferImpl; 27 class WebGraphicsContext3DInProcessCommandBufferImpl;
24 } 28 }
25 29
26 namespace webkit {
27 namespace gpu {
28 class ContextProviderWebContext;
29 }
30 }
31
32 namespace content { 30 namespace content {
33 31
34 class InputHandlerManagerClient; 32 class InputHandlerManagerClient;
35 class StreamTextureFactory; 33 class StreamTextureFactory;
36 class FrameSwapMessageQueue; 34 class FrameSwapMessageQueue;
37 35
38 // Decouples creation from usage of the parts needed for the synchonous 36 // Decouples creation from usage of the parts needed for the synchonous
39 // compositor rendering path. In practice this is only used in single 37 // compositor rendering path. In practice this is only used in single
40 // process mode (namely, for Android WebView) hence the implementation of 38 // process mode (namely, for Android WebView) hence the implementation of
41 // this will be injected from the logical 'browser' side code. 39 // this will be injected from the logical 'browser' side code.
(...skipping 10 matching lines...) Expand all
52 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 50 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
53 int routing_id, 51 int routing_id,
54 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0; 52 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0;
55 53
56 // The factory maintains ownership of the returned interface. 54 // The factory maintains ownership of the returned interface.
57 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; 55 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0;
58 56
59 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 57 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
60 int routing_id) = 0; 58 int routing_id) = 0;
61 59
62 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> 60 virtual scoped_refptr<cc_blink::ContextProviderWebContext>
63 CreateOffscreenContextProvider( 61 CreateOffscreenContextProvider(
64 const blink::WebGraphicsContext3D::Attributes& attributes, 62 const blink::WebGraphicsContext3D::Attributes& attributes,
65 const std::string& debug_name) = 0; 63 const std::string& debug_name) = 0;
66 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( 64 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
67 int frame_id) = 0; 65 int frame_id) = 0;
68 virtual gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl* 66 virtual gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl*
69 CreateOffscreenGraphicsContext3D( 67 CreateOffscreenGraphicsContext3D(
70 const blink::WebGraphicsContext3D::Attributes& attributes) = 0; 68 const blink::WebGraphicsContext3D::Attributes& attributes) = 0;
71 69
72 protected: 70 protected:
73 SynchronousCompositorFactory() {} 71 SynchronousCompositorFactory() {}
74 virtual ~SynchronousCompositorFactory() {} 72 virtual ~SynchronousCompositorFactory() {}
75 }; 73 };
76 74
77 } 75 }
78 76
79 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ 77 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/context_provider_command_buffer.h ('k') | content/renderer/media/webmediaplayer_ms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698