| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 // GL_CHROMIUM_command_buffer_query | 86 // GL_CHROMIUM_command_buffer_query |
| 87 #define GL_COMMANDS_ISSUED_CHROMIUM 0x84F2 | 87 #define GL_COMMANDS_ISSUED_CHROMIUM 0x84F2 |
| 88 | 88 |
| 89 /* GL_CHROMIUM_get_error_query */ | 89 /* GL_CHROMIUM_get_error_query */ |
| 90 #define GL_GET_ERROR_QUERY_CHROMIUM 0x84F3 | 90 #define GL_GET_ERROR_QUERY_CHROMIUM 0x84F3 |
| 91 | 91 |
| 92 /* GL_CHROMIUM_command_buffer_latency_query */ | 92 /* GL_CHROMIUM_command_buffer_latency_query */ |
| 93 #define GL_LATENCY_QUERY_CHROMIUM 0x84F4 | 93 #define GL_LATENCY_QUERY_CHROMIUM 0x84F4 |
| 94 | 94 |
| 95 /* GL_CHROMIUM_async_pixel_transfers */ |
| 96 #define GL_ASYNC_PIXEL_TRANSFERS_COMPLETED_CHROMIUM 0x84F5 |
| 97 |
| 95 // GL_OES_texure_3D | 98 // GL_OES_texure_3D |
| 96 #define GL_SAMPLER_3D_OES 0x8B5F | 99 #define GL_SAMPLER_3D_OES 0x8B5F |
| 97 | 100 |
| 98 // GL_OES_depth24 | 101 // GL_OES_depth24 |
| 99 #define GL_DEPTH_COMPONENT24_OES 0x81A6 | 102 #define GL_DEPTH_COMPONENT24_OES 0x81A6 |
| 100 | 103 |
| 101 // GL_OES_depth32 | 104 // GL_OES_depth32 |
| 102 #define GL_DEPTH_COMPONENT32_OES 0x81A7 | 105 #define GL_DEPTH_COMPONENT32_OES 0x81A7 |
| 103 | 106 |
| 104 // GL_OES_packed_depth_stencil | 107 // GL_OES_packed_depth_stencil |
| (...skipping 23 matching lines...) Expand all Loading... |
| 128 #ifdef GL_ERROR_DEBUGGING | 131 #ifdef GL_ERROR_DEBUGGING |
| 129 #define CHECK_GL_ERROR() do { \ | 132 #define CHECK_GL_ERROR() do { \ |
| 130 GLenum gl_error = glGetError(); \ | 133 GLenum gl_error = glGetError(); \ |
| 131 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ | 134 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ |
| 132 } while (0) | 135 } while (0) |
| 133 #else // GL_ERROR_DEBUGGING | 136 #else // GL_ERROR_DEBUGGING |
| 134 #define CHECK_GL_ERROR() void(0) | 137 #define CHECK_GL_ERROR() void(0) |
| 135 #endif // GL_ERROR_DEBUGGING | 138 #endif // GL_ERROR_DEBUGGING |
| 136 | 139 |
| 137 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ | 140 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ |
| OLD | NEW |