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

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

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 2 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/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
index 552eaebbc5e52e999681f5558d0581ab8373dc76..fbac00f3a3e1ae28d0f8ef400441d69985537f3a 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc
@@ -4084,6 +4084,31 @@ error::Error GLES2DecoderPassthroughImpl::HandleReleaseTexImage2DCHROMIUM(
return error::kNoError;
}
+error::Error GLES2DecoderPassthroughImpl::HandleCopyImageSubDataCHROMIUM(
+ uint32_t immediate_data_size,
+ const volatile void* cmd_data) {
+ const volatile gles2::cmds::CopyImageSubDataCHROMIUM& c =
+ *static_cast<const volatile gles2::cmds::CopyImageSubDataCHROMIUM*>(
+ cmd_data);
+ GLint source_image_id = static_cast<GLint>(c.source_image_id);
+ GLint dest_texture_id = static_cast<GLint>(c.dest_texture_id);
+ GLint xoffset = static_cast<GLint>(c.xoffset);
+ GLint yoffset = static_cast<GLint>(c.yoffset);
+ GLint x = static_cast<GLint>(c.x);
+ GLint y = static_cast<GLint>(c.y);
+ GLsizei width = static_cast<GLsizei>(c.width);
+ GLsizei height = static_cast<GLsizei>(c.height);
+ GLint in_fence_id = static_cast<GLint>(c.in_fence_id);
+ GLint out_fence_id = static_cast<GLint>(c.out_fence_id);
+ error::Error error = DoCopyImageSubDataCHROMIUM(
+ source_image_id, dest_texture_id, xoffset, yoffset, x, y, width, height,
+ in_fence_id, out_fence_id);
+ if (error != error::kNoError) {
+ return error;
+ }
+ return error::kNoError;
+}
+
error::Error GLES2DecoderPassthroughImpl::HandleTraceEndCHROMIUM(
uint32_t immediate_data_size,
const volatile void* cmd_data) {

Powered by Google App Engine
This is Rietveld 408576698