| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // getting_array: True if name refers to array. | 177 // getting_array: True if name refers to array. |
| 178 // returns true of parsing was successful. Returing true does NOT mean | 178 // returns true of parsing was successful. Returing true does NOT mean |
| 179 // it's a valid uniform name. On the otherhand, returning false does mean | 179 // it's a valid uniform name. On the otherhand, returning false does mean |
| 180 // it's an invalid uniform name. | 180 // it's an invalid uniform name. |
| 181 static bool ParseUniformName( | 181 static bool ParseUniformName( |
| 182 const std::string& name, | 182 const std::string& name, |
| 183 size_t* array_pos, | 183 size_t* array_pos, |
| 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); |
| 188 static size_t CalcClearBufferfvDataCount(int buffer); |
| 189 |
| 187 #include "../common/gles2_cmd_utils_autogen.h" | 190 #include "../common/gles2_cmd_utils_autogen.h" |
| 188 | 191 |
| 189 private: | 192 private: |
| 190 static std::string GetQualifiedEnumString( | 193 static std::string GetQualifiedEnumString( |
| 191 const EnumToString* table, size_t count, uint32_t value); | 194 const EnumToString* table, size_t count, uint32_t value); |
| 192 | 195 |
| 193 static const EnumToString* const enum_to_string_table_; | 196 static const EnumToString* const enum_to_string_table_; |
| 194 static const size_t enum_to_string_table_len_; | 197 static const size_t enum_to_string_table_len_; |
| 195 | 198 |
| 196 int num_compressed_texture_formats_; | 199 int num_compressed_texture_formats_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 216 bool bind_generates_resource; | 219 bool bind_generates_resource; |
| 217 bool fail_if_major_perf_caveat; | 220 bool fail_if_major_perf_caveat; |
| 218 bool lose_context_when_out_of_memory; | 221 bool lose_context_when_out_of_memory; |
| 219 }; | 222 }; |
| 220 | 223 |
| 221 } // namespace gles2 | 224 } // namespace gles2 |
| 222 } // namespace gpu | 225 } // namespace gpu |
| 223 | 226 |
| 224 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ | 227 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ |
| 225 | 228 |
| OLD | NEW |