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

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

Issue 10124016: Addition of GL_CHROMIUM_copy_texture extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Removing dangling error checking code. Created 8 years, 8 months 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 | Annotate | Revision Log
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 24 matching lines...) Expand all
35 35
36 // GL_OES_EGL_image_external 36 // GL_OES_EGL_image_external
37 #define GL_TEXTURE_EXTERNAL_OES 0x8D65 37 #define GL_TEXTURE_EXTERNAL_OES 0x8D65
38 #define GL_SAMPLER_EXTERNAL_OES 0x8D66 38 #define GL_SAMPLER_EXTERNAL_OES 0x8D66
39 #define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67 39 #define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67
40 #define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68 40 #define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
41 41
42 // GL_ANGLE_translated_shader_source 42 // GL_ANGLE_translated_shader_source
43 #define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0 43 #define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0
44 44
45 // GL_CHROMIUM_flipy
46 #define GL_UNPACK_FLIP_Y_CHROMIUM 0x9240
47
48 #define GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM 0x9241
49 #define GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM 0x9243
50
45 // GL_ANGLE_pack_reverse_row_order 51 // GL_ANGLE_pack_reverse_row_order
46 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4 52 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4
47 53
48 // GL_ANGLE_texture_usage 54 // GL_ANGLE_texture_usage
49 #define GL_TEXTURE_USAGE_ANGLE 0x93A2 55 #define GL_TEXTURE_USAGE_ANGLE 0x93A2
50 #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3 56 #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3
51 57
52 // GL_EXT_texture_storage 58 // GL_EXT_texture_storage
53 #define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F 59 #define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
54 #define GL_ALPHA8_EXT 0x803C 60 #define GL_ALPHA8_EXT 0x803C
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 #ifdef GL_ERROR_DEBUGGING 93 #ifdef GL_ERROR_DEBUGGING
88 #define CHECK_GL_ERROR() do { \ 94 #define CHECK_GL_ERROR() do { \
89 GLenum gl_error = glGetError(); \ 95 GLenum gl_error = glGetError(); \
90 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ 96 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \
91 } while (0) 97 } while (0)
92 #else // GL_ERROR_DEBUGGING 98 #else // GL_ERROR_DEBUGGING
93 #define CHECK_GL_ERROR() void(0) 99 #define CHECK_GL_ERROR() void(0)
94 #endif // GL_ERROR_DEBUGGING 100 #endif // GL_ERROR_DEBUGGING
95 101
96 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 102 #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_copy_texture_chromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698