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

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

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_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
index 719691492f7300dca9917c8d8b08826707a5b70b..fdf67c1bca61b0ec66cf46188b9190571173e6d9 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
@@ -5205,6 +5205,37 @@ error::Error GLES2DecoderImpl::HandleReleaseTexImage2DCHROMIUM(
return error::kNoError;
}
+error::Error GLES2DecoderImpl::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);
+ if (width < 0) {
+ LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyImageSubDataCHROMIUM",
+ "width < 0");
+ return error::kNoError;
+ }
+ if (height < 0) {
+ LOCAL_SET_GL_ERROR(GL_INVALID_VALUE, "glCopyImageSubDataCHROMIUM",
+ "height < 0");
+ return error::kNoError;
+ }
+ DoCopyImageSubDataCHROMIUM(source_image_id, dest_texture_id, xoffset, yoffset,
+ x, y, width, height, in_fence_id, out_fence_id);
+ return error::kNoError;
+}
+
error::Error GLES2DecoderImpl::HandleTraceEndCHROMIUM(
uint32_t immediate_data_size,
const volatile void* cmd_data) {

Powered by Google App Engine
This is Rietveld 408576698