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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.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 (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 GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define GPU_BLINK_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"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> 50 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
51 WrapContext( 51 WrapContext(
52 scoped_ptr< ::gpu::GLInProcessContext> context, 52 scoped_ptr< ::gpu::GLInProcessContext> context,
53 const blink::WebGraphicsContext3D::Attributes& attributes); 53 const blink::WebGraphicsContext3D::Attributes& attributes);
54 54
55 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); 55 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl();
56 56
57 size_t GetMappedMemoryLimit(); 57 size_t GetMappedMemoryLimit();
58 58
59 bool InitializeOnCurrentThread(); 59 bool InitializeOnCurrentThread();
60 void SetLock(base::Lock* lock);
60 61
61 //---------------------------------------------------------------------- 62 //----------------------------------------------------------------------
62 // WebGraphicsContext3D methods 63 // WebGraphicsContext3D methods
63 virtual bool isContextLost(); 64 virtual bool isContextLost();
64 65
65 virtual WGC3Denum getGraphicsResetStatusARB(); 66 virtual WGC3Denum getGraphicsResetStatusARB();
66 67
67 ::gpu::ContextSupport* GetContextSupport(); 68 ::gpu::ContextSupport* GetContextSupport();
68 69
69 ::gpu::gles2::GLES2Implementation* GetImplementation() { 70 ::gpu::gles2::GLES2Implementation* GetImplementation() {
(...skipping 26 matching lines...) Expand all
96 97
97 // The context we use for OpenGL rendering. 98 // The context we use for OpenGL rendering.
98 scoped_ptr< ::gpu::GLInProcessContext> context_; 99 scoped_ptr< ::gpu::GLInProcessContext> context_;
99 // The GLES2Implementation we use for OpenGL rendering. 100 // The GLES2Implementation we use for OpenGL rendering.
100 ::gpu::gles2::GLES2Implementation* real_gl_; 101 ::gpu::gles2::GLES2Implementation* real_gl_;
101 }; 102 };
102 103
103 } // namespace gpu_blink 104 } // namespace gpu_blink
104 105
105 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 106 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.cc ('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