| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 const char* GetServiceVersionString(const FeatureInfo* feature_info); | 57 const char* GetServiceVersionString(const FeatureInfo* feature_info); |
| 58 const char* GetServiceShadingLanguageVersionString( | 58 const char* GetServiceShadingLanguageVersionString( |
| 59 const FeatureInfo* feature_info); | 59 const FeatureInfo* feature_info); |
| 60 const char* GetServiceRendererString(const FeatureInfo* feature_info); | |
| 61 const char* GetServiceVendorString(const FeatureInfo* feature_info); | |
| 62 | 60 |
| 63 void APIENTRY LogGLDebugMessage(GLenum source, | 61 void APIENTRY LogGLDebugMessage(GLenum source, |
| 64 GLenum type, | 62 GLenum type, |
| 65 GLuint id, | 63 GLuint id, |
| 66 GLenum severity, | 64 GLenum severity, |
| 67 GLsizei length, | 65 GLsizei length, |
| 68 const GLchar* message, | 66 const GLchar* message, |
| 69 GLvoid* user_param); | 67 GLvoid* user_param); |
| 70 | 68 |
| 71 void InitializeGLDebugLogging(); | 69 void InitializeGLDebugLogging(); |
| 72 | 70 |
| 73 } // gles2 | 71 } // gles2 |
| 74 } // gpu | 72 } // gpu |
| 75 | 73 |
| 76 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ | 74 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ |
| OLD | NEW |