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

Unified Diff: gpu/command_buffer/service/gl_utils.h

Issue 2319373004: Query the GL limits for the passthrough command buffer. (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 | « no previous file | gpu/command_buffer/service/gl_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gl_utils.h
diff --git a/gpu/command_buffer/service/gl_utils.h b/gpu/command_buffer/service/gl_utils.h
index 9402ecaf3600dd24bdc69f16b2aead02f844113f..dcc5fe6257d45f354856151a60b9ac9d31a5a326 100644
--- a/gpu/command_buffer/service/gl_utils.h
+++ b/gpu/command_buffer/service/gl_utils.h
@@ -24,11 +24,34 @@
#define CHECK_GL_ERROR() void(0)
#endif // GL_ERROR_DEBUGGING
+namespace gl {
+struct GLVersionInfo;
+}
+
namespace gpu {
+
+struct Capabilities;
+class FeatureInfo;
+
namespace gles2 {
std::vector<int> GetAllGLErrors();
+bool PrecisionMeetsSpecForHighpFloat(GLint rangeMin,
+ GLint rangeMax,
+ GLint precision);
+void QueryShaderPrecisionFormat(const gl::GLVersionInfo& gl_version_info,
+ GLenum shader_type,
+ GLenum precision_type,
+ GLint* range,
+ GLint* precision);
+
+// Using the provided feature info, query the numeric limits of the underlying
+// GL and fill in the members of the Capabilities struct. Does not perform any
+// extension checks.
+void PopulateNumericCapabilities(Capabilities* caps,
+ const FeatureInfo* feature_info);
+
} // gles2
} // gpu
« no previous file with comments | « no previous file | gpu/command_buffer/service/gl_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698