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

Side by Side Diff: webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.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 (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 WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 6 #define WEBKIT_COMMON_GPU_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"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> 54 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
55 WrapContext( 55 WrapContext(
56 scoped_ptr< ::gpu::GLInProcessContext> context, 56 scoped_ptr< ::gpu::GLInProcessContext> context,
57 const blink::WebGraphicsContext3D::Attributes& attributes); 57 const blink::WebGraphicsContext3D::Attributes& attributes);
58 58
59 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); 59 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl();
60 60
61 size_t GetMappedMemoryLimit(); 61 size_t GetMappedMemoryLimit();
62 62
63 // WebGraphicsContext3DImpl methods
64 virtual bool InitializeOnCurrentThread() OVERRIDE;
65
63 //---------------------------------------------------------------------- 66 //----------------------------------------------------------------------
64 // WebGraphicsContext3D methods 67 // WebGraphicsContext3D methods
65 virtual bool makeContextCurrent();
66
67 virtual bool isContextLost(); 68 virtual bool isContextLost();
68 69
69 virtual WGC3Denum getGraphicsResetStatusARB(); 70 virtual WGC3Denum getGraphicsResetStatusARB();
70 71
71 ::gpu::ContextSupport* GetContextSupport(); 72 ::gpu::ContextSupport* GetContextSupport();
72 73
73 ::gpu::gles2::GLES2Implementation* GetImplementation() { 74 ::gpu::gles2::GLES2Implementation* GetImplementation() {
74 return real_gl_; 75 return real_gl_;
75 } 76 }
76 77
(...skipping 24 matching lines...) Expand all
101 // The context we use for OpenGL rendering. 102 // The context we use for OpenGL rendering.
102 scoped_ptr< ::gpu::GLInProcessContext> context_; 103 scoped_ptr< ::gpu::GLInProcessContext> context_;
103 // The GLES2Implementation we use for OpenGL rendering. 104 // The GLES2Implementation we use for OpenGL rendering.
104 ::gpu::gles2::GLES2Implementation* real_gl_; 105 ::gpu::gles2::GLES2Implementation* real_gl_;
105 }; 106 };
106 107
107 } // namespace gpu 108 } // namespace gpu
108 } // namespace webkit 109 } // namespace webkit
109 110
110 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_ 111 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698