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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_STUB_API_H_ 5 #ifndef UI_GL_GL_STUB_API_H_
6 #define UI_GL_GL_STUB_API_H_ 6 #define UI_GL_GL_STUB_API_H_
7 7
8 #include <string>
9
8 #include "ui/gl/gl_export.h" 10 #include "ui/gl/gl_export.h"
9 #include "ui/gl/gl_stub_api_base.h" 11 #include "ui/gl/gl_stub_api_base.h"
10 12
11 namespace gl { 13 namespace gl {
12 14
13 class GL_EXPORT GLStubApi: public GLStubApiBase { 15 class GL_EXPORT GLStubApi: public GLStubApiBase {
14 public: 16 public:
17 GLStubApi();
18 ~GLStubApi() override;
19
20 void set_version(std::string version) { version_ = std::move(version); }
21
22 void set_extensions(std::string extensions) {
23 extensions_ = std::move(extensions);
24 }
25
15 GLenum glCheckFramebufferStatusEXTFn(GLenum target) override; 26 GLenum glCheckFramebufferStatusEXTFn(GLenum target) override;
16 GLuint glCreateProgramFn(void) override; 27 GLuint glCreateProgramFn(void) override;
17 GLuint glCreateShaderFn(GLenum type) override; 28 GLuint glCreateShaderFn(GLenum type) override;
18 GLsync glFenceSyncFn(GLenum condition, GLbitfield flags) override; 29 GLsync glFenceSyncFn(GLenum condition, GLbitfield flags) override;
19 void glGenBuffersARBFn(GLsizei n, GLuint* buffers) override; 30 void glGenBuffersARBFn(GLsizei n, GLuint* buffers) override;
20 void glGenerateMipmapEXTFn(GLenum target) override; 31 void glGenerateMipmapEXTFn(GLenum target) override;
21 void glGenFencesAPPLEFn(GLsizei n, GLuint* fences) override; 32 void glGenFencesAPPLEFn(GLsizei n, GLuint* fences) override;
22 void glGenFencesNVFn(GLsizei n, GLuint* fences) override; 33 void glGenFencesNVFn(GLsizei n, GLuint* fences) override;
23 void glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) override; 34 void glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) override;
24 GLuint glGenPathsNVFn(GLsizei range) override; 35 GLuint glGenPathsNVFn(GLsizei range) override;
(...skipping 22 matching lines...) Expand all
47 GLboolean glIsSyncFn(GLsync sync) override; 58 GLboolean glIsSyncFn(GLsync sync) override;
48 GLboolean glIsTextureFn(GLuint texture) override; 59 GLboolean glIsTextureFn(GLuint texture) override;
49 GLboolean glIsTransformFeedbackFn(GLuint id) override; 60 GLboolean glIsTransformFeedbackFn(GLuint id) override;
50 GLboolean glIsVertexArrayOESFn(GLuint array) override; 61 GLboolean glIsVertexArrayOESFn(GLuint array) override;
51 GLboolean glTestFenceAPPLEFn(GLuint fence) override; 62 GLboolean glTestFenceAPPLEFn(GLuint fence) override;
52 GLboolean glTestFenceNVFn(GLuint fence) override; 63 GLboolean glTestFenceNVFn(GLuint fence) override;
53 GLboolean glUnmapBufferFn(GLenum target) override; 64 GLboolean glUnmapBufferFn(GLenum target) override;
54 GLenum glWaitSyncFn(GLsync sync, 65 GLenum glWaitSyncFn(GLsync sync,
55 GLbitfield flags, 66 GLbitfield flags,
56 GLuint64 timeout) override; 67 GLuint64 timeout) override;
68
69 private:
70 std::string version_;
71 std::string extensions_;
72
73 DISALLOW_COPY_AND_ASSIGN(GLStubApi);
57 }; 74 };
58 75
59 } // namespace gl 76 } // namespace gl
60 77
61 #endif // UI_GL_GL_STUB_API_H_ 78 #endif // UI_GL_GL_STUB_API_H_
OLDNEW
« 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