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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.h

Issue 1759433002: Update GL_IMPLEMENTATION_COLOR_READ_FORMAT for BGRA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove no longer needed check from GLHelperReadbackSupport::SupportsFormat Created 4 years, 9 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 // This file is here so other GLES2 related files can have a common set of 5 // This file is here so other GLES2 related files can have a common set of
6 // includes where appropriate. 6 // includes where appropriate.
7 7
8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 static size_t GetCoefficientCountForGLPathFragmentInputGenMode( 169 static size_t GetCoefficientCountForGLPathFragmentInputGenMode(
170 uint32_t gen_mode); 170 uint32_t gen_mode);
171 171
172 static uint32_t GLErrorBitToGLError(uint32_t error_bit); 172 static uint32_t GLErrorBitToGLError(uint32_t error_bit);
173 173
174 static uint32_t IndexToGLFaceTarget(int index); 174 static uint32_t IndexToGLFaceTarget(int index);
175 175
176 static size_t GLTargetToFaceIndex(uint32_t target); 176 static size_t GLTargetToFaceIndex(uint32_t target);
177 177
178 static uint32_t GetGLReadPixelsImplementationFormat( 178 static uint32_t GetGLReadPixelsAdditionalFormat(uint32_t internal_format,
179 uint32_t internal_format); 179 uint32_t texture_type);
180 180
181 static uint32_t GetGLReadPixelsImplementationType( 181 static uint32_t GetGLReadPixelsTypeForAdditionalFormat(
182 uint32_t internal_format, uint32_t texture_type); 182 uint32_t internal_format,
183 uint32_t texture_type);
183 184
184 // Returns a bitmask for the channels the given format supports. 185 // Returns a bitmask for the channels the given format supports.
185 // See ChannelBits. 186 // See ChannelBits.
186 static uint32_t GetChannelsForFormat(int format); 187 static uint32_t GetChannelsForFormat(int format);
187 188
188 // Returns a bitmask for the channels the given attachment type needs. 189 // Returns a bitmask for the channels the given attachment type needs.
189 static uint32_t GetChannelsNeededForAttachmentType( 190 static uint32_t GetChannelsNeededForAttachmentType(
190 int type, uint32_t max_color_attachments); 191 int type, uint32_t max_color_attachments);
191 192
192 // Return true if value is neither a power of two nor zero. 193 // Return true if value is neither a power of two nor zero.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 bool fail_if_major_perf_caveat; 288 bool fail_if_major_perf_caveat;
288 bool lose_context_when_out_of_memory; 289 bool lose_context_when_out_of_memory;
289 ContextType context_type; 290 ContextType context_type;
290 }; 291 };
291 292
292 } // namespace gles2 293 } // namespace gles2
293 } // namespace gpu 294 } // namespace gpu
294 295
295 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 296 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
296 297
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698