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

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

Issue 1309333003: Get ReadPixels to work with INT and UNSIGNED_INT format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 static size_t CalcClearBufferivDataCount(int buffer); 180 static size_t CalcClearBufferivDataCount(int buffer);
181 static size_t CalcClearBufferfvDataCount(int buffer); 181 static size_t CalcClearBufferfvDataCount(int buffer);
182 182
183 static void MapUint64ToTwoUint32( 183 static void MapUint64ToTwoUint32(
184 uint64_t v64, uint32_t* v32_0, uint32_t* v32_1); 184 uint64_t v64, uint32_t* v32_0, uint32_t* v32_1);
185 static uint64_t MapTwoUint32ToUint64(uint32_t v32_0, uint32_t v32_1); 185 static uint64_t MapTwoUint32ToUint64(uint32_t v32_0, uint32_t v32_1);
186 186
187 static uint32_t MapBufferTargetToBindingEnum(uint32_t target); 187 static uint32_t MapBufferTargetToBindingEnum(uint32_t target);
188 188
189 static bool IsUnsignedIntegerFormat(uint32_t internal_format);
190 static bool IsSignedIntegerFormat(uint32_t internal_format);
191 static bool IsIntegerFormat(uint32_t internal_format);
192
189 #include "../common/gles2_cmd_utils_autogen.h" 193 #include "../common/gles2_cmd_utils_autogen.h"
190 194
191 private: 195 private:
192 static std::string GetQualifiedEnumString( 196 static std::string GetQualifiedEnumString(
193 const EnumToString* table, size_t count, uint32_t value); 197 const EnumToString* table, size_t count, uint32_t value);
194 198
195 static const EnumToString* const enum_to_string_table_; 199 static const EnumToString* const enum_to_string_table_;
196 static const size_t enum_to_string_table_len_; 200 static const size_t enum_to_string_table_len_;
197 201
198 int num_compressed_texture_formats_; 202 int num_compressed_texture_formats_;
(...skipping 21 matching lines...) Expand all
220 bool lose_context_when_out_of_memory; 224 bool lose_context_when_out_of_memory;
221 // 0 if not a WebGL context. 225 // 0 if not a WebGL context.
222 unsigned webgl_version; 226 unsigned webgl_version;
223 }; 227 };
224 228
225 } // namespace gles2 229 } // namespace gles2
226 } // namespace gpu 230 } // namespace gpu
227 231
228 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 232 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
229 233
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698