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

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

Issue 2502423003: Implement basic query functionality in the passthrough command buffer. (Closed)
Patch Set: rebase 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_doers.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_handlers.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc
index 5ec2a318d4972870ffecb258c00ca20abb8bc58a..7f4059194e34d71c2c11ccb9a83d6c6a07da0cc1 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc
@@ -1133,8 +1133,12 @@ error::Error GLES2DecoderPassthroughImpl::HandleQueryCounterEXT(
*static_cast<const volatile gles2::cmds::QueryCounterEXT*>(cmd_data);
GLuint id = static_cast<GLuint>(c.id);
GLenum target = static_cast<GLenum>(c.target);
+ int32_t sync_shm_id = static_cast<int32_t>(c.sync_data_shm_id);
+ uint32_t sync_shm_offset = static_cast<uint32_t>(c.sync_data_shm_offset);
+ uint32_t submit_count = static_cast<GLuint>(c.submit_count);
- error::Error error = DoQueryCounterEXT(id, target);
+ error::Error error =
+ DoQueryCounterEXT(id, target, sync_shm_id, sync_shm_offset, submit_count);
if (error != error::kNoError) {
return error;
}
@@ -1149,8 +1153,11 @@ error::Error GLES2DecoderPassthroughImpl::HandleBeginQueryEXT(
*static_cast<const volatile gles2::cmds::BeginQueryEXT*>(cmd_data);
GLenum target = static_cast<GLenum>(c.target);
GLuint id = static_cast<GLuint>(c.id);
+ int32_t sync_shm_id = static_cast<int32_t>(c.sync_data_shm_id);
+ uint32_t sync_shm_offset = static_cast<uint32_t>(c.sync_data_shm_offset);
- error::Error error = DoBeginQueryEXT(target, id);
+ error::Error error =
+ DoBeginQueryEXT(target, id, sync_shm_id, sync_shm_offset);
if (error != error::kNoError) {
return error;
}
@@ -1164,8 +1171,9 @@ error::Error GLES2DecoderPassthroughImpl::HandleEndQueryEXT(
const volatile gles2::cmds::EndQueryEXT& c =
*static_cast<const volatile gles2::cmds::EndQueryEXT*>(cmd_data);
GLenum target = static_cast<GLenum>(c.target);
+ uint32_t submit_count = static_cast<GLuint>(c.submit_count);
- error::Error error = DoEndQueryEXT(target);
+ error::Error error = DoEndQueryEXT(target, submit_count);
if (error != error::kNoError) {
return error;
}
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698