Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Side by Side Diff: gpu/command_buffer/service/gl_utils.h

Issue 11412232: gpu: Add async upload functions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@ASYNC_uploads
Patch Set: Rebase. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698