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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h

Issue 1746983002: Make Android StreamTexture implement GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't remove the default stream texture matrix from cc/layers Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 GLsizei width, 60 GLsizei width,
61 GLsizei height, 61 GLsizei height,
62 GLsizei dest_width, 62 GLsizei dest_width,
63 GLsizei dest_height, 63 GLsizei dest_height,
64 GLsizei source_width, 64 GLsizei source_width,
65 GLsizei source_height, 65 GLsizei source_height,
66 bool flip_y, 66 bool flip_y,
67 bool premultiply_alpha, 67 bool premultiply_alpha,
68 bool unpremultiply_alpha); 68 bool unpremultiply_alpha);
69 69
70 void DoCopySubTextureWithTransform(const gles2::GLES2Decoder* decoder,
71 GLenum source_target,
72 GLuint source_id,
73 GLenum source_internal_format,
74 GLenum dest_target,
75 GLuint dest_id,
76 GLenum dest_internal_format,
77 GLint xoffset,
78 GLint yoffset,
79 GLint x,
80 GLint y,
81 GLsizei width,
82 GLsizei height,
83 GLsizei dest_width,
84 GLsizei dest_height,
85 GLsizei source_width,
86 GLsizei source_height,
87 bool flip_y,
88 bool premultiply_alpha,
89 bool unpremultiply_alpha,
90 const GLfloat transform_matrix[16]);
91
70 // This will apply a transform on the texture coordinates before sampling 92 // This will apply a transform on the texture coordinates before sampling
71 // the source texture and copying to the destination texture. The transform 93 // the source texture and copying to the destination texture. The transform
72 // matrix should be given in column-major form, so it can be passed 94 // matrix should be given in column-major form, so it can be passed
73 // directly to GL. 95 // directly to GL.
74 void DoCopyTextureWithTransform(const gles2::GLES2Decoder* decoder, 96 void DoCopyTextureWithTransform(const gles2::GLES2Decoder* decoder,
75 GLenum source_target, 97 GLenum source_target,
76 GLuint source_id, 98 GLuint source_id,
77 GLenum dest_target, 99 GLenum dest_target,
78 GLuint dest_id, 100 GLuint dest_id,
79 GLsizei width, 101 GLsizei width,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 GLuint vertex_array_object_id_; 165 GLuint vertex_array_object_id_;
144 GLuint buffer_id_; 166 GLuint buffer_id_;
145 GLuint framebuffer_; 167 GLuint framebuffer_;
146 168
147 DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager); 169 DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager);
148 }; 170 };
149 171
150 } // namespace gpu. 172 } // namespace gpu.
151 173
152 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_ 174 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gl_stream_texture_image.h ('k') | gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698