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

Unified Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 2639973002: Add target argument to Copy{Sub}TextureCHROMIUM entry point (Closed)
Patch Set: use dest_target instead of target Created 3 years, 11 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 eed99df1622e0dccd67b568e24f07d73b4b3d1e7..7bd9f0d6338e4e411642fc18931a3c78e850f76d 100644
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
@@ -3113,6 +3113,7 @@ void GLES2Implementation::GetTranslatedShaderSourceANGLE(GLuint shader,
void GLES2Implementation::CopyTextureCHROMIUM(
GLenum source_id,
GLint source_level,
+ GLenum dest_target,
GLenum dest_id,
GLint dest_level,
GLint internalformat,
@@ -3124,20 +3125,23 @@ void GLES2Implementation::CopyTextureCHROMIUM(
GPU_CLIENT_LOG(
"[" << GetLogPrefix() << "] glCopyTextureCHROMIUM("
<< GLES2Util::GetStringEnum(source_id) << ", " << source_level << ", "
+ << GLES2Util::GetStringEnum(dest_target) << ", "
<< GLES2Util::GetStringEnum(dest_id) << ", " << dest_level << ", "
<< internalformat << ", " << GLES2Util::GetStringPixelType(dest_type)
<< ", " << GLES2Util::GetStringBool(unpack_flip_y) << ", "
<< GLES2Util::GetStringBool(unpack_premultiply_alpha) << ", "
<< GLES2Util::GetStringBool(unpack_unmultiply_alpha) << ")");
- helper_->CopyTextureCHROMIUM(
- source_id, source_level, dest_id, dest_level, internalformat, dest_type,
- unpack_flip_y, unpack_premultiply_alpha, unpack_unmultiply_alpha);
+ helper_->CopyTextureCHROMIUM(source_id, source_level, dest_target, dest_id,
+ dest_level, internalformat, dest_type,
+ unpack_flip_y, unpack_premultiply_alpha,
+ unpack_unmultiply_alpha);
CheckGLError();
}
void GLES2Implementation::CopySubTextureCHROMIUM(
GLenum source_id,
GLint source_level,
+ GLenum dest_target,
GLenum dest_id,
GLint dest_level,
GLint xoffset,
@@ -3153,6 +3157,7 @@ void GLES2Implementation::CopySubTextureCHROMIUM(
GPU_CLIENT_LOG(
"[" << GetLogPrefix() << "] glCopySubTextureCHROMIUM("
<< GLES2Util::GetStringEnum(source_id) << ", " << source_level << ", "
+ << GLES2Util::GetStringEnum(dest_target) << ", "
<< GLES2Util::GetStringEnum(dest_id) << ", " << dest_level << ", "
<< xoffset << ", " << yoffset << ", " << x << ", " << y << ", "
<< width << ", " << height << ", "
@@ -3167,10 +3172,10 @@ void GLES2Implementation::CopySubTextureCHROMIUM(
SetGLError(GL_INVALID_VALUE, "glCopySubTextureCHROMIUM", "height < 0");
return;
}
- helper_->CopySubTextureCHROMIUM(source_id, source_level, dest_id, dest_level,
- xoffset, yoffset, x, y, width, height,
- unpack_flip_y, unpack_premultiply_alpha,
- unpack_unmultiply_alpha);
+ helper_->CopySubTextureCHROMIUM(
+ source_id, source_level, dest_target, dest_id, dest_level, xoffset,
+ yoffset, x, y, width, height, unpack_flip_y, unpack_premultiply_alpha,
+ unpack_unmultiply_alpha);
CheckGLError();
}

Powered by Google App Engine
This is Rietveld 408576698