| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); | 55 bool CheckUniqueAndNonNullIds(GLsizei n, const GLuint* client_ids); |
| 56 | 56 |
| 57 void APIENTRY LogGLDebugMessage(GLenum source, |
| 58 GLenum type, |
| 59 GLuint id, |
| 60 GLenum severity, |
| 61 GLsizei length, |
| 62 const GLchar* message, |
| 63 GLvoid* user_param); |
| 64 |
| 65 void InitializeGLDebugLogging(); |
| 66 |
| 57 } // gles2 | 67 } // gles2 |
| 58 } // gpu | 68 } // gpu |
| 59 | 69 |
| 60 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ | 70 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ |
| OLD | NEW |