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

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

Issue 1143393007: Teach GPU command buffer whether a context is webgl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void OnContextLost(); 82 void OnContextLost();
83 83
84 bool MaybeInitializeGL(); 84 bool MaybeInitializeGL();
85 85
86 // Used to try to find bugs in code that calls gl directly through the gl api 86 // Used to try to find bugs in code that calls gl directly through the gl api
87 // instead of going through WebGraphicsContext3D. 87 // instead of going through WebGraphicsContext3D.
88 void ClearContext(); 88 void ClearContext();
89 89
90 ::gpu::gles2::ContextCreationAttribHelper attribs_; 90 ::gpu::gles2::ContextCreationAttribHelper attribs_;
91 bool share_resources_; 91 bool share_resources_;
92 bool webgl_context_;
93 92
94 bool is_offscreen_; 93 bool is_offscreen_;
95 // Only used when not offscreen. 94 // Only used when not offscreen.
96 gfx::AcceleratedWidget window_; 95 gfx::AcceleratedWidget window_;
97 96
98 // The context we use for OpenGL rendering. 97 // The context we use for OpenGL rendering.
99 scoped_ptr< ::gpu::GLInProcessContext> context_; 98 scoped_ptr< ::gpu::GLInProcessContext> context_;
100 // The GLES2Implementation we use for OpenGL rendering. 99 // The GLES2Implementation we use for OpenGL rendering.
101 ::gpu::gles2::GLES2Implementation* real_gl_; 100 ::gpu::gles2::GLES2Implementation* real_gl_;
102 }; 101 };
103 102
104 } // namespace gpu_blink 103 } // namespace gpu_blink
105 104
106 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 105 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698