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

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

Issue 1119723003: Add glCopyCompressedTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments in tests Created 5 years, 7 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 652855463872b846b567cfd56d696e1277866795..c832919d1cb3f76cad2aea85eabe467d7b25f39b 100644
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
@@ -3218,6 +3218,31 @@ void GLES2Implementation::CopySubTextureCHROMIUM(GLenum target,
CheckGLError();
}
+void GLES2Implementation::CopyCompressedTextureCHROMIUM(GLenum target,
+ GLenum source_id,
+ GLenum dest_id,
+ GLenum internalformat,
+ GLenum dest_type,
+ GLsizei source_size) {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG(
+ "[" << GetLogPrefix() << "] glCopyCompressedTextureCHROMIUM("
+ << GLES2Util::GetStringEnum(target) << ", "
+ << GLES2Util::GetStringEnum(source_id) << ", "
+ << GLES2Util::GetStringEnum(dest_id) << ", "
+ << GLES2Util::GetStringCompressedTextureFormat(internalformat) << ", "
+ << GLES2Util::GetStringPixelType(dest_type) << ", " << source_size
+ << ")");
+ if (source_size < 0) {
+ SetGLError(GL_INVALID_VALUE, "glCopyCompressedTextureCHROMIUM",
+ "source_size < 0");
+ return;
+ }
+ helper_->CopyCompressedTextureCHROMIUM(
+ target, source_id, dest_id, internalformat, dest_type, source_size);
+ CheckGLError();
+}
+
void GLES2Implementation::GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) {
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glGenValuebuffersCHROMIUM(" << n
<< ", " << static_cast<const void*>(buffers) << ")");

Powered by Google App Engine
This is Rietveld 408576698