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

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

Issue 10535174: Addition of unpremultiply setting to GL_CHROMIUM_copy_texture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 28 matching lines...) Expand all
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 45 // GL_CHROMIUM_flipy
46 #define GL_UNPACK_FLIP_Y_CHROMIUM 0x9240 46 #define GL_UNPACK_FLIP_Y_CHROMIUM 0x9240
47 47
48 #define GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM 0x9241 48 #define GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM 0x9241
49 #define GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM 0x9242
49 #define GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM 0x9243 50 #define GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM 0x9243
50 51
51 // GL_ANGLE_pack_reverse_row_order 52 // GL_ANGLE_pack_reverse_row_order
52 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4 53 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4
53 54
54 // GL_ANGLE_texture_usage 55 // GL_ANGLE_texture_usage
55 #define GL_TEXTURE_USAGE_ANGLE 0x93A2 56 #define GL_TEXTURE_USAGE_ANGLE 0x93A2
56 #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3 57 #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3
57 58
58 // GL_EXT_texture_storage 59 // GL_EXT_texture_storage
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 #ifdef GL_ERROR_DEBUGGING 105 #ifdef GL_ERROR_DEBUGGING
105 #define CHECK_GL_ERROR() do { \ 106 #define CHECK_GL_ERROR() do { \
106 GLenum gl_error = glGetError(); \ 107 GLenum gl_error = glGetError(); \
107 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ 108 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \
108 } while (0) 109 } while (0)
109 #else // GL_ERROR_DEBUGGING 110 #else // GL_ERROR_DEBUGGING
110 #define CHECK_GL_ERROR() void(0) 111 #define CHECK_GL_ERROR() void(0)
111 #endif // GL_ERROR_DEBUGGING 112 #endif // GL_ERROR_DEBUGGING
112 113
113 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 114 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698