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

Unified Diff: ui/gl/gl_stub_api.h

Issue 2299413003: Enable a lot of extensions to increase fuzzer coverage (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/tests/fuzzer_main.cc ('k') | ui/gl/gl_stub_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_stub_api.h
diff --git a/ui/gl/gl_stub_api.h b/ui/gl/gl_stub_api.h
index e654ffb4a74272764a8ecfda061d04bcd3a2a7d7..9968116316ea6658c1a407b2bfe5b69045b36421 100644
--- a/ui/gl/gl_stub_api.h
+++ b/ui/gl/gl_stub_api.h
@@ -5,6 +5,8 @@
#ifndef UI_GL_GL_STUB_API_H_
#define UI_GL_GL_STUB_API_H_
+#include <string>
+
#include "ui/gl/gl_export.h"
#include "ui/gl/gl_stub_api_base.h"
@@ -12,6 +14,15 @@ namespace gl {
class GL_EXPORT GLStubApi: public GLStubApiBase {
public:
+ GLStubApi();
+ ~GLStubApi() override;
+
+ void set_version(std::string version) { version_ = std::move(version); }
+
+ void set_extensions(std::string extensions) {
+ extensions_ = std::move(extensions);
+ }
+
GLenum glCheckFramebufferStatusEXTFn(GLenum target) override;
GLuint glCreateProgramFn(void) override;
GLuint glCreateShaderFn(GLenum type) override;
@@ -54,6 +65,12 @@ class GL_EXPORT GLStubApi: public GLStubApiBase {
GLenum glWaitSyncFn(GLsync sync,
GLbitfield flags,
GLuint64 timeout) override;
+
+ private:
+ std::string version_;
+ std::string extensions_;
+
+ DISALLOW_COPY_AND_ASSIGN(GLStubApi);
};
} // namespace gl
« no previous file with comments | « gpu/command_buffer/tests/fuzzer_main.cc ('k') | ui/gl/gl_stub_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698