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

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

Issue 2479513002: Reland of Extend CopyTextureCHROMIUM to more ES 3.0 texture formats. (Closed)
Patch Set: fix windows and mac bot Created 4 years, 1 month 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 26 matching lines...) Expand all
37 GLenum source_internal_format, 37 GLenum source_internal_format,
38 GLenum dest_target, 38 GLenum dest_target,
39 GLuint dest_id, 39 GLuint dest_id,
40 GLenum dest_internal_format, 40 GLenum dest_internal_format,
41 GLsizei width, 41 GLsizei width,
42 GLsizei height, 42 GLsizei height,
43 bool flip_y, 43 bool flip_y,
44 bool premultiply_alpha, 44 bool premultiply_alpha,
45 bool unpremultiply_alpha); 45 bool unpremultiply_alpha);
46 46
47 void DoCopyTexImage2D(const gpu::gles2::GLES2Decoder* decoder,
48 GLenum source_target,
49 GLuint source_id,
50 GLenum dest_target,
51 GLuint dest_id,
52 GLenum dest_internal_format,
53 GLsizei width,
54 GLsizei height);
55
47 void DoCopySubTexture(const gles2::GLES2Decoder* decoder, 56 void DoCopySubTexture(const gles2::GLES2Decoder* decoder,
48 GLenum source_target, 57 GLenum source_target,
49 GLuint source_id, 58 GLuint source_id,
50 GLenum source_internal_format, 59 GLenum source_internal_format,
51 GLenum dest_target, 60 GLenum dest_target,
52 GLuint dest_id, 61 GLuint dest_id,
53 GLenum dest_internal_format, 62 GLenum dest_internal_format,
54 GLint xoffset, 63 GLint xoffset,
55 GLint yoffset, 64 GLint yoffset,
56 GLint x, 65 GLint x,
57 GLint y, 66 GLint y,
58 GLsizei width, 67 GLsizei width,
59 GLsizei height, 68 GLsizei height,
60 GLsizei dest_width, 69 GLsizei dest_width,
61 GLsizei dest_height, 70 GLsizei dest_height,
62 GLsizei source_width, 71 GLsizei source_width,
63 GLsizei source_height, 72 GLsizei source_height,
64 bool flip_y, 73 bool flip_y,
65 bool premultiply_alpha, 74 bool premultiply_alpha,
66 bool unpremultiply_alpha); 75 bool unpremultiply_alpha);
67 76
77 void DoCopyTexSubImage2D(const gpu::gles2::GLES2Decoder* decoder,
78 GLenum source_target,
79 GLuint source_id,
80 GLenum dest_target,
81 GLuint dest_id,
82 GLint xoffset,
83 GLint yoffset,
84 GLint x,
85 GLint y,
86 GLsizei width,
87 GLsizei height);
88
68 void DoCopySubTextureWithTransform(const gles2::GLES2Decoder* decoder, 89 void DoCopySubTextureWithTransform(const gles2::GLES2Decoder* decoder,
69 GLenum source_target, 90 GLenum source_target,
70 GLuint source_id, 91 GLuint source_id,
71 GLenum source_internal_format, 92 GLenum source_internal_format,
72 GLenum dest_target, 93 GLenum dest_target,
73 GLuint dest_id, 94 GLuint dest_id,
74 GLenum dest_internal_format, 95 GLenum dest_internal_format,
75 GLint xoffset, 96 GLint xoffset,
76 GLint yoffset, 97 GLint yoffset,
77 GLint x, 98 GLint x,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 GLuint buffer_id_; 186 GLuint buffer_id_;
166 GLuint framebuffer_; 187 GLuint framebuffer_;
167 188
168 DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager); 189 DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager);
169 }; 190 };
170 191
171 } // namespace gles2 192 } // namespace gles2
172 } // namespace gpu 193 } // namespace gpu
173 194
174 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_ 195 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698