OLD | NEW |
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 173 matching lines...) Loading... |
184 int* element_index, | 184 int* element_index, |
185 bool* getting_array); | 185 bool* getting_array); |
186 | 186 |
187 static size_t CalcClearBufferivDataCount(int buffer); | 187 static size_t CalcClearBufferivDataCount(int buffer); |
188 static size_t CalcClearBufferfvDataCount(int buffer); | 188 static size_t CalcClearBufferfvDataCount(int buffer); |
189 | 189 |
190 static void MapUint64ToTwoUint32( | 190 static void MapUint64ToTwoUint32( |
191 uint64_t v64, uint32_t* v32_0, uint32_t* v32_1); | 191 uint64_t v64, uint32_t* v32_0, uint32_t* v32_1); |
192 static uint64_t MapTwoUint32ToUint64(uint32_t v32_0, uint32_t v32_1); | 192 static uint64_t MapTwoUint32ToUint64(uint32_t v32_0, uint32_t v32_1); |
193 | 193 |
| 194 static uint32_t MapBufferTargetToBindingEnum(uint32_t target); |
| 195 |
194 #include "../common/gles2_cmd_utils_autogen.h" | 196 #include "../common/gles2_cmd_utils_autogen.h" |
195 | 197 |
196 private: | 198 private: |
197 static std::string GetQualifiedEnumString( | 199 static std::string GetQualifiedEnumString( |
198 const EnumToString* table, size_t count, uint32_t value); | 200 const EnumToString* table, size_t count, uint32_t value); |
199 | 201 |
200 static const EnumToString* const enum_to_string_table_; | 202 static const EnumToString* const enum_to_string_table_; |
201 static const size_t enum_to_string_table_len_; | 203 static const size_t enum_to_string_table_len_; |
202 | 204 |
203 int num_compressed_texture_formats_; | 205 int num_compressed_texture_formats_; |
(...skipping 20 matching lines...) Loading... |
224 bool fail_if_major_perf_caveat; | 226 bool fail_if_major_perf_caveat; |
225 bool lose_context_when_out_of_memory; | 227 bool lose_context_when_out_of_memory; |
226 bool es3_context_required; | 228 bool es3_context_required; |
227 }; | 229 }; |
228 | 230 |
229 } // namespace gles2 | 231 } // namespace gles2 |
230 } // namespace gpu | 232 } // namespace gpu |
231 | 233 |
232 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ | 234 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ |
233 | 235 |
OLD | NEW |