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

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

Issue 1275773003: gpu: support GL_TEXTURE_CUBE_MAP destination target to Copy(Sub)TextureCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Choose correct and expensive way Created 5 years, 4 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_copy_texture_chromium.h
diff --git a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h
index f0438b4d2ca79f51abb2ab3bbb0db4b6544ea931..165c298a1b26e0411a3ee1d44a2004f4da6d28c0 100644
--- a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h
+++ b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h
@@ -34,20 +34,25 @@ class GPU_EXPORT CopyTextureCHROMIUMResourceManager {
GLenum source_target,
GLuint source_id,
GLenum source_internal_format,
+ GLenum dest_target,
GLuint dest_id,
GLenum dest_internal_format,
+ GLenum dest_type,
GLsizei width,
GLsizei height,
bool flip_y,
bool premultiply_alpha,
- bool unpremultiply_alpha);
+ bool unpremultiply_alpha,
+ bool dest_cube_complete);
void DoCopySubTexture(const gles2::GLES2Decoder* decoder,
GLenum source_target,
GLuint source_id,
GLenum source_internal_format,
+ GLenum dest_target,
GLuint dest_id,
GLenum dest_internal_format,
+ GLenum dest_type,
GLint xoffset,
GLint yoffset,
GLint x,
@@ -60,7 +65,8 @@ class GPU_EXPORT CopyTextureCHROMIUMResourceManager {
GLsizei source_height,
bool flip_y,
bool premultiply_alpha,
- bool unpremultiply_alpha);
+ bool unpremultiply_alpha,
+ bool dest_cube_complete);
// This will apply a transform on the texture coordinates before sampling
// the source texture and copying to the destination texture. The transform
@@ -69,12 +75,16 @@ class GPU_EXPORT CopyTextureCHROMIUMResourceManager {
void DoCopyTextureWithTransform(const gles2::GLES2Decoder* decoder,
GLenum source_target,
GLuint source_id,
+ GLenum dest_target,
GLuint dest_id,
+ GLenum dest_internal_format,
+ GLenum dest_type,
GLsizei width,
GLsizei height,
bool flip_y,
bool premultiply_alpha,
bool unpremultiply_alpha,
+ bool dest_cube_complete,
const GLfloat transform_matrix[16]);
// The attributes used during invocation of the extension.
@@ -99,6 +109,7 @@ class GPU_EXPORT CopyTextureCHROMIUMResourceManager {
void DoCopyTextureInternal(const gles2::GLES2Decoder* decoder,
GLenum source_target,
GLuint source_id,
+ GLenum dest_target,
GLuint dest_id,
GLint xoffset,
GLint yoffset,
@@ -124,6 +135,7 @@ class GPU_EXPORT CopyTextureCHROMIUMResourceManager {
ProgramMap programs_;
GLuint buffer_id_;
GLuint framebuffer_;
+ GLuint staging_testure_;
Ken Russell (switch to Gerrit) 2015/08/18 00:33:02 typo: should be staging_texture_ .
dshwang 2015/08/18 14:42:01 Acknowledged.
DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager);
};

Powered by Google App Engine
This is Rietveld 408576698