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

Side by Side Diff: ui/gl/gl_gl_api_implementation.h

Issue 1497863002: Fix disabled extensions for virtual contexts and respect command line. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed GL_NUM_EXTENSIONS Created 5 years 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
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_GL_GL_GL_API_IMPLEMENTATION_H_ 5 #ifndef UI_GL_GL_GL_API_IMPLEMENTATION_H_
6 #define UI_GL_GL_GL_API_IMPLEMENTATION_H_ 6 #define UI_GL_GL_GL_API_IMPLEMENTATION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 public: 117 public:
118 VirtualGLApi(); 118 VirtualGLApi();
119 ~VirtualGLApi() override; 119 ~VirtualGLApi() override;
120 void Initialize(DriverGL* driver, GLContext* real_context); 120 void Initialize(DriverGL* driver, GLContext* real_context);
121 121
122 // Sets the current virutal context. 122 // Sets the current virutal context.
123 bool MakeCurrent(GLContext* virtual_context, GLSurface* surface); 123 bool MakeCurrent(GLContext* virtual_context, GLSurface* surface);
124 124
125 void OnReleaseVirtuallyCurrent(GLContext* virtual_context); 125 void OnReleaseVirtuallyCurrent(GLContext* virtual_context);
126 126
127 private: 127 private:
128 // Overridden functions from GLApiBase 128 // Overridden functions from GLApiBase
129 const GLubyte* glGetStringFn(GLenum name) override; 129 void glGetIntegervFn(GLenum pname, GLint* params) override;
130 void glFinishFn() override; 130 const GLubyte* glGetStringFn(GLenum name) override;
131 void glFlushFn() override; 131 const GLubyte* glGetStringiFn(GLenum name, GLuint index) override;
132 void glFinishFn() override;
133 void glFlushFn() override;
132 134
133 // The real context we're running on. 135 // The real context we're running on.
134 GLContext* real_context_; 136 GLContext* real_context_;
135 137
136 // The current virtual context. 138 // The current virtual context.
137 GLContext* current_context_; 139 GLContext* current_context_;
138 140
139 // The supported extensions being advertised for this virtual context. 141 // The supported extensions being advertised for this virtual context.
140 std::string extensions_; 142 std::string extensions_;
143 std::vector<std::string> extensions_vec_;
141 }; 144 };
142 145
143 } // namespace gfx 146 } // namespace gfx
144 147
145 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ 148 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698