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

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

Issue 1144103006: gpu: Avoid scissor test for glCopyTextureCHROMIUM if possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 GLuint half_size_handle; 91 GLuint half_size_handle;
92 GLuint sampler_handle; 92 GLuint sampler_handle;
93 }; 93 };
94 94
95 void DoCopyTextureInternal(const gles2::GLES2Decoder* decoder, 95 void DoCopyTextureInternal(const gles2::GLES2Decoder* decoder,
96 GLenum source_target, 96 GLenum source_target,
97 GLuint source_id, 97 GLuint source_id,
98 GLuint dest_id, 98 GLuint dest_id,
99 GLint xoffset, 99 GLint xoffset,
100 GLint yoffset, 100 GLint yoffset,
101 GLint x,
102 GLint y,
103 GLsizei width,
104 GLsizei height,
101 GLsizei dest_width, 105 GLsizei dest_width,
102 GLsizei dest_height, 106 GLsizei dest_height,
103 GLsizei source_width, 107 GLsizei source_width,
104 GLsizei source_height, 108 GLsizei source_height,
105 bool flip_y, 109 bool flip_y,
106 bool premultiply_alpha, 110 bool premultiply_alpha,
107 bool unpremultiply_alpha, 111 bool unpremultiply_alpha,
108 const GLfloat transform_matrix[16], 112 const GLfloat transform_matrix[16]);
109 GLint scissor_x,
110 GLint scissor_y,
111 GLsizei scissor_width,
112 GLsizei scissor_height);
113 113
114 bool initialized_; 114 bool initialized_;
115 typedef std::vector<GLuint> ShaderVector; 115 typedef std::vector<GLuint> ShaderVector;
116 ShaderVector vertex_shaders_; 116 ShaderVector vertex_shaders_;
117 ShaderVector fragment_shaders_; 117 ShaderVector fragment_shaders_;
118 typedef std::pair<int, int> ProgramMapKey; 118 typedef std::pair<int, int> ProgramMapKey;
119 typedef base::hash_map<ProgramMapKey, ProgramInfo> ProgramMap; 119 typedef base::hash_map<ProgramMapKey, ProgramInfo> ProgramMap;
120 ProgramMap programs_; 120 ProgramMap programs_;
121 GLuint buffer_id_; 121 GLuint buffer_id_;
122 GLuint framebuffer_; 122 GLuint framebuffer_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager); 124 DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager);
125 }; 125 };
126 126
127 } // namespace gpu. 127 } // namespace gpu.
128 128
129 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_ 129 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
OLDNEW
« no previous file with comments | « no previous file | 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