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

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

Issue 1129693004: Disabled extensions in bug list now automatically removes the extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 base::CommandLine* command_line); 63 base::CommandLine* command_line);
64 64
65 void glGetIntegervFn(GLenum pname, GLint* params) override; 65 void glGetIntegervFn(GLenum pname, GLint* params) override;
66 const GLubyte* glGetStringFn(GLenum name) override; 66 const GLubyte* glGetStringFn(GLenum name) override;
67 const GLubyte* glGetStringiFn(GLenum name, GLuint index) override; 67 const GLubyte* glGetStringiFn(GLenum name, GLuint index) override;
68 68
69 private: 69 private:
70 void glFinishFn() override; 70 void glFinishFn() override;
71 void glFlushFn() override; 71 void glFlushFn() override;
72 72
73 void InitializeFilteredExtensions();
74
73 // Filtered GL_EXTENSIONS we return to glGetString(i) calls. 75 // Filtered GL_EXTENSIONS we return to glGetString(i) calls.
76 std::vector<std::string> disabled_exts_;
74 std::vector<std::string> filtered_exts_; 77 std::vector<std::string> filtered_exts_;
75 std::string filtered_exts_str_; 78 std::string filtered_exts_str_;
76 }; 79 };
77 80
78 // Inserts a TRACE for every GL call. 81 // Inserts a TRACE for every GL call.
79 class TraceGLApi : public GLApi { 82 class TraceGLApi : public GLApi {
80 public: 83 public:
81 TraceGLApi(GLApi* gl_api) : gl_api_(gl_api) { } 84 TraceGLApi(GLApi* gl_api) : gl_api_(gl_api) { }
82 ~TraceGLApi() override; 85 ~TraceGLApi() override;
83 86
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 ScopedSetGLToRealGLApi(); 140 ScopedSetGLToRealGLApi();
138 ~ScopedSetGLToRealGLApi(); 141 ~ScopedSetGLToRealGLApi();
139 142
140 private: 143 private:
141 GLApi* old_gl_api_; 144 GLApi* old_gl_api_;
142 }; 145 };
143 146
144 } // namespace gfx 147 } // namespace gfx
145 148
146 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_ 149 #endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698