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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc

Issue 2503453005: Patch the results of queries that return object IDs in the passthrough cmd decoder. (Closed)
Patch Set: Created 4 years, 1 month 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/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
index 840e1bd70881dc8830b4caab471db35c6eba5853..b5afd494937cc0ea6d9c535816252721a3db285d 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
@@ -875,7 +875,7 @@ error::Error GLES2DecoderPassthroughImpl::DoGetBooleanv(GLenum pname,
GLsizei* length,
GLboolean* params) {
glGetBooleanvRobustANGLE(pname, bufsize, length, params);
- return error::kNoError;
+ return PatchGetNumericResults(pname, *length, params);
piman 2016/11/16 18:55:22 This makes me uncomfortable. params is in shared m
Geoff Lang 2016/11/17 19:35:01 Good point, I didn't think about these being in sh
}
error::Error GLES2DecoderPassthroughImpl::DoGetBufferParameteri64v(
@@ -908,7 +908,7 @@ error::Error GLES2DecoderPassthroughImpl::DoGetFloatv(GLenum pname,
GLsizei* length,
GLfloat* params) {
glGetFloatvRobustANGLE(pname, bufsize, length, params);
- return error::kNoError;
+ return PatchGetNumericResults(pname, *length, params);
}
error::Error GLES2DecoderPassthroughImpl::DoGetFragDataLocation(
@@ -928,7 +928,8 @@ error::Error GLES2DecoderPassthroughImpl::DoGetFramebufferAttachmentParameteriv(
GLint* params) {
glGetFramebufferAttachmentParameterivRobustANGLE(target, attachment, pname,
bufsize, length, params);
- return error::kNoError;
+ return PatchGetFramebufferAttachmentParameter(target, attachment, pname,
+ *length, params);
}
error::Error GLES2DecoderPassthroughImpl::DoGetInteger64v(GLenum pname,
@@ -936,7 +937,7 @@ error::Error GLES2DecoderPassthroughImpl::DoGetInteger64v(GLenum pname,
GLsizei* length,
GLint64* params) {
glGetInteger64vRobustANGLE(pname, bufsize, length, params);
- return error::kNoError;
+ return PatchGetNumericResults(pname, *length, params);
}
error::Error GLES2DecoderPassthroughImpl::DoGetIntegeri_v(GLenum pname,
@@ -962,7 +963,7 @@ error::Error GLES2DecoderPassthroughImpl::DoGetIntegerv(GLenum pname,
GLsizei* length,
GLint* params) {
glGetIntegervRobustANGLE(pname, bufsize, length, params);
- return error::kNoError;
+ return PatchGetNumericResults(pname, *length, params);
}
error::Error GLES2DecoderPassthroughImpl::DoGetInternalformativ(GLenum target,
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698