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

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: feedback 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 GetGLReadPixelsImplementationFormat(uint32_t internal_format,
179 uint32_t internal_format); 179 uint32_t texture_type,
180 bool supports_bgra);
180 181
181 static uint32_t GetGLReadPixelsImplementationType( 182 static uint32_t GetGLReadPixelsImplementationType(
182 uint32_t internal_format, uint32_t texture_type); 183 uint32_t internal_format, 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(
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 bool fail_if_major_perf_caveat; 289 bool fail_if_major_perf_caveat;
289 bool lose_context_when_out_of_memory; 290 bool lose_context_when_out_of_memory;
290 ContextType context_type; 291 ContextType context_type;
291 }; 292 };
292 293
293 } // namespace gles2 294 } // namespace gles2
294 } // namespace gpu 295 } // namespace gpu
295 296
296 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 297 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
297 298
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698