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

Side by Side Diff: gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.h

Issue 841773006: Extract WebGraphicsContext3DInProcessCommandBufferImpl from webkit/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "gpu/blink/gpu_blink_export.h"
12 #include "gpu/blink/webgraphicscontext3d_impl.h" 13 #include "gpu/blink/webgraphicscontext3d_impl.h"
13 #include "gpu/command_buffer/client/gl_in_process_context.h" 14 #include "gpu/command_buffer/client/gl_in_process_context.h"
14 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 15 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
15 #include "third_party/WebKit/public/platform/WebString.h" 16 #include "third_party/WebKit/public/platform/WebString.h"
16 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
17 #include "webkit/common/gpu/webkit_gpu_export.h"
18 18
19 namespace gpu { 19 namespace gpu {
20 class ContextSupport; 20 class ContextSupport;
21 class GLInProcessContext;
21 22
22 namespace gles2 { 23 namespace gles2 {
23 class GLES2Interface; 24 class GLES2Interface;
24 class GLES2Implementation; 25 class GLES2Implementation;
25 struct ContextCreationAttribHelper; 26 struct ContextCreationAttribHelper;
26 } 27 }
27 } 28 }
28 29
29 namespace gpu { 30 namespace gpu_blink {
30 class GLInProcessContext;
31 }
32 31
33 namespace webkit { 32 class GPU_BLINK_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl
34 namespace gpu { 33 : public WebGraphicsContext3DImpl {
35
36 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl
37 : public gpu_blink::WebGraphicsContext3DImpl {
38 public: 34 public:
39 enum MappedMemoryReclaimLimit { 35 enum MappedMemoryReclaimLimit {
40 kNoLimit = 0, 36 kNoLimit = 0,
41 }; 37 };
42 38
43 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> 39 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
44 CreateViewContext( 40 CreateViewContext(
45 const blink::WebGraphicsContext3D::Attributes& attributes, 41 const blink::WebGraphicsContext3D::Attributes& attributes,
46 bool lose_context_when_out_of_memory, 42 bool lose_context_when_out_of_memory,
47 gfx::AcceleratedWidget window); 43 gfx::AcceleratedWidget window);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool is_offscreen_; 93 bool is_offscreen_;
98 // Only used when not offscreen. 94 // Only used when not offscreen.
99 gfx::AcceleratedWidget window_; 95 gfx::AcceleratedWidget window_;
100 96
101 // The context we use for OpenGL rendering. 97 // The context we use for OpenGL rendering.
102 scoped_ptr< ::gpu::GLInProcessContext> context_; 98 scoped_ptr< ::gpu::GLInProcessContext> context_;
103 // The GLES2Implementation we use for OpenGL rendering. 99 // The GLES2Implementation we use for OpenGL rendering.
104 ::gpu::gles2::GLES2Implementation* real_gl_; 100 ::gpu::gles2::GLES2Implementation* real_gl_;
105 }; 101 };
106 102
107 } // namespace gpu 103 } // namespace gpu_blink
108 } // namespace webkit
109 104
110 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_ 105 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/blink/gpu_blink.gyp ('k') | gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698