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

Unified Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 1165553003: Fine tuning glGetInternalformativ. (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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/gles2_implementation_impl_autogen.h
diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
index 4f4ee325f9637b8ca0b516124994f3cfdbb4ea5a..e386b5147d3799d32827023ad56d90542c06f39e 100644
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
@@ -1103,44 +1103,6 @@ void GLES2Implementation::GetIntegerv(GLenum pname, GLint* params) {
});
CheckGLError();
}
-void GLES2Implementation::GetInternalformativ(GLenum target,
- GLenum format,
- GLenum pname,
- GLsizei bufSize,
- GLint* params) {
- GPU_CLIENT_SINGLE_THREAD_CHECK();
- GPU_CLIENT_VALIDATE_DESTINATION_INITALIZATION(GLint, params);
- GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGetInternalformativ("
- << GLES2Util::GetStringRenderBufferTarget(target) << ", "
- << GLES2Util::GetStringRenderBufferFormat(format) << ", "
- << GLES2Util::GetStringInternalFormatParameter(pname)
- << ", " << bufSize << ", "
- << static_cast<const void*>(params) << ")");
- if (bufSize < 0) {
- SetGLError(GL_INVALID_VALUE, "glGetInternalformativ", "bufSize < 0");
- return;
- }
- TRACE_EVENT0("gpu", "GLES2Implementation::GetInternalformativ");
- if (GetInternalformativHelper(target, format, pname, bufSize, params)) {
- return;
- }
- typedef cmds::GetInternalformativ::Result Result;
- Result* result = GetResultAs<Result*>();
- if (!result) {
- return;
- }
- result->SetNumResults(0);
- helper_->GetInternalformativ(target, format, pname, bufSize, GetResultShmId(),
- GetResultShmOffset());
- WaitForCmd();
- result->CopyResult(params);
- GPU_CLIENT_LOG_CODE_BLOCK({
- for (int32_t i = 0; i < result->GetNumResults(); ++i) {
- GPU_CLIENT_LOG(" " << i << ": " << result->GetData()[i]);
- }
- });
- CheckGLError();
-}
void GLES2Implementation::GetProgramiv(GLuint program,
GLenum pname,
GLint* params) {
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698