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

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

Issue 470973002: gpu: Remove WebGraphicsContext3D::makeContextCurrent() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix in unittests Created 6 years, 3 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 ContextProvider; 17 class ContextProvider;
18 class OutputSurface; 18 class OutputSurface;
19 } 19 }
20 20
21 namespace webkit { 21 namespace webkit {
22 namespace gpu { 22 namespace gpu {
23 class ContextProviderWebContext; 23 class ContextProviderWebContext;
24 class WebGraphicsContext3DImpl;
24 } 25 }
25 } 26 }
26 27
27 namespace content { 28 namespace content {
28 29
29 class InputHandlerManagerClient; 30 class InputHandlerManagerClient;
30 class StreamTextureFactory; 31 class StreamTextureFactory;
31 class FrameSwapMessageQueue; 32 class FrameSwapMessageQueue;
32 33
33 // Decouples creation from usage of the parts needed for the synchonous 34 // Decouples creation from usage of the parts needed for the synchonous
(...skipping 16 matching lines...) Expand all
50 51
51 // The factory maintains ownership of the returned interface. 52 // The factory maintains ownership of the returned interface.
52 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; 53 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0;
53 54
54 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext> 55 virtual scoped_refptr<webkit::gpu::ContextProviderWebContext>
55 CreateOffscreenContextProvider( 56 CreateOffscreenContextProvider(
56 const blink::WebGraphicsContext3D::Attributes& attributes, 57 const blink::WebGraphicsContext3D::Attributes& attributes,
57 const std::string& debug_name) = 0; 58 const std::string& debug_name) = 0;
58 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( 59 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
59 int frame_id) = 0; 60 int frame_id) = 0;
60 virtual blink::WebGraphicsContext3D* CreateOffscreenGraphicsContext3D( 61 virtual webkit::gpu::WebGraphicsContext3DImpl*
61 const blink::WebGraphicsContext3D::Attributes& attributes) = 0; 62 CreateOffscreenGraphicsContext3D(
63 const blink::WebGraphicsContext3D::Attributes& attributes) = 0;
62 64
63 protected: 65 protected:
64 SynchronousCompositorFactory() {} 66 SynchronousCompositorFactory() {}
65 virtual ~SynchronousCompositorFactory() {} 67 virtual ~SynchronousCompositorFactory() {}
66 }; 68 };
67 69
68 } 70 }
69 71
70 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ 72 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698