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 includes all the necessary GL headers and implements some useful | 5 // This file includes all the necessary GL headers and implements some useful |
6 // utilities. | 6 // utilities. |
7 | 7 |
8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ | 8 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ |
9 #define GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ | 9 #define GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 GLenum precision_type, | 45 GLenum precision_type, |
46 GLint* range, | 46 GLint* range, |
47 GLint* precision); | 47 GLint* precision); |
48 | 48 |
49 // Using the provided feature info, query the numeric limits of the underlying | 49 // Using the provided feature info, query the numeric limits of the underlying |
50 // GL and fill in the members of the Capabilities struct. Does not perform any | 50 // GL and fill in the members of the Capabilities struct. Does not perform any |
51 // extension checks. | 51 // extension checks. |
52 void PopulateNumericCapabilities(Capabilities* caps, | 52 void PopulateNumericCapabilities(Capabilities* caps, |
53 const FeatureInfo* feature_info); | 53 const FeatureInfo* feature_info); |
54 | 54 |
| 55 bool CheckUniqueAndNonNullIds(GLsizei n, const GLuint* client_ids); |
| 56 |
55 } // gles2 | 57 } // gles2 |
56 } // gpu | 58 } // gpu |
57 | 59 |
58 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ | 60 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ |
OLD | NEW |