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

Unified Diff: ui/gl/gl_stub_api.cc

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 | « ui/gl/gl_stub_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_stub_api.cc
diff --git a/ui/gl/gl_stub_api.cc b/ui/gl/gl_stub_api.cc
index e4b634ab996c120263259ba7b652ebbbe9a3f165..7d071cf8e90a20786879984e02e4b38b6a15f8e6 100644
--- a/ui/gl/gl_stub_api.cc
+++ b/ui/gl/gl_stub_api.cc
@@ -15,6 +15,11 @@ void GenHelper(GLsizei count, GLuint* objects) {
} // anonymous namespace
+GLStubApi::GLStubApi()
+ : version_("OpenGL ES 3.0"), extensions_("GL_EXT_framebuffer_object") {}
+
+GLStubApi::~GLStubApi() = default;
+
GLenum GLStubApi::glCheckFramebufferStatusEXTFn(GLenum target) {
return GL_FRAMEBUFFER_COMPLETE;
}
@@ -114,6 +119,7 @@ void GLStubApi::glGetIntegervFn(GLenum pname, GLint* params) {
*params = 8;
break;
case GL_MAX_TEXTURE_SIZE:
+ case GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB:
*params = 2048;
break;
case GL_MAX_CUBE_MAP_TEXTURE_SIZE:
@@ -205,9 +211,9 @@ const GLubyte* GLStubApi::glGetStringFn(GLenum name) {
default:
return reinterpret_cast<const GLubyte*>("");
case GL_VERSION:
- return reinterpret_cast<const GLubyte*>("OpenGL ES 3.0");
+ return reinterpret_cast<const GLubyte*>(version_.c_str());
case GL_EXTENSIONS:
- return reinterpret_cast<const GLubyte*>("GL_EXT_framebuffer_object");
+ return reinterpret_cast<const GLubyte*>(extensions_.c_str());
}
}
« no previous file with comments | « ui/gl/gl_stub_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698