| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 16 matching lines...) Expand all Loading... |
| 27 int GLGetNumValuesReturned(int id) const; | 27 int GLGetNumValuesReturned(int id) const; |
| 28 | 28 |
| 29 // Computes the size of image data for TexImage2D and TexSubImage2D. | 29 // Computes the size of image data for TexImage2D and TexSubImage2D. |
| 30 static uint32 ComputeImageDataSize( | 30 static uint32 ComputeImageDataSize( |
| 31 int width, int height, int format, int type, int unpack_alignment); | 31 int width, int height, int format, int type, int unpack_alignment); |
| 32 | 32 |
| 33 static uint32 GetGLDataTypeSizeForUniforms(int type); | 33 static uint32 GetGLDataTypeSizeForUniforms(int type); |
| 34 | 34 |
| 35 static size_t GetGLTypeSizeForTexturesAndBuffers(uint32 type); | 35 static size_t GetGLTypeSizeForTexturesAndBuffers(uint32 type); |
| 36 | 36 |
| 37 static uint32 GLErrorToErrorBit(uint32 gl_error); | |
| 38 | |
| 39 static uint32 GLErrorBitToGLError(uint32 error_bit); | |
| 40 | |
| 41 private: | 37 private: |
| 42 int num_compressed_texture_formats_; | 38 int num_compressed_texture_formats_; |
| 43 }; | 39 }; |
| 44 | 40 |
| 45 } // namespace gles2 | 41 } // namespace gles2 |
| 46 } // namespace gpu | 42 } // namespace gpu |
| 47 | 43 |
| 48 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ | 44 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ |
| 49 | 45 |
| OLD | NEW |