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

Unified Diff: gpu/command_buffer/client/gles2_implementation_impl_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/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 e10aa498039a6d4e168cffcb1bf7146efb361b7e..fe6bc010d62b41d993d16bda663aa6e65d40f5d1 100644
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
@@ -3218,6 +3218,36 @@ void GLES2Implementation::ReleaseTexImage2DCHROMIUM(GLenum target,
CheckGLError();
}
+void GLES2Implementation::CopyImageSubDataCHROMIUM(GLint source_image_id,
+ GLint dest_texture_id,
+ GLint xoffset,
+ GLint yoffset,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height,
+ GLint in_fence_id,
+ GLint out_fence_id) {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCopyImageSubDataCHROMIUM("
+ << source_image_id << ", " << dest_texture_id << ", "
+ << xoffset << ", " << yoffset << ", " << x << ", " << y
+ << ", " << width << ", " << height << ", " << in_fence_id
+ << ", " << out_fence_id << ")");
+ if (width < 0) {
+ SetGLError(GL_INVALID_VALUE, "glCopyImageSubDataCHROMIUM", "width < 0");
+ return;
+ }
+ if (height < 0) {
+ SetGLError(GL_INVALID_VALUE, "glCopyImageSubDataCHROMIUM", "height < 0");
+ return;
+ }
+ helper_->CopyImageSubDataCHROMIUM(source_image_id, dest_texture_id, xoffset,
+ yoffset, x, y, width, height, in_fence_id,
+ out_fence_id);
+ CheckGLError();
+}
+
void GLES2Implementation::DiscardFramebufferEXT(GLenum target,
GLsizei count,
const GLenum* attachments) {

Powered by Google App Engine
This is Rietveld 408576698