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

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

Issue 8772033: Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 27 matching lines...) Expand all
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_ANGLE_pack_reverse_row_order 45 // GL_ANGLE_pack_reverse_row_order
46 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4 46 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4
47 47
48 // GL_ANGLE_texture_usage
49 #define GL_TEXTURE_USAGE_ANGLE 0x93A2
50 #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3
51
52 // GL_EXT_texture_storage
53 #define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
54 #define GL_ALPHA8_EXT 0x803C
55 #define GL_LUMINANCE8_EXT 0x8040
56 #define GL_LUMINANCE8_ALPHA8_EXT 0x8045
57 #define GL_RGBA32F_EXT 0x8814
58 #define GL_RGB32F_EXT 0x8815
59 #define GL_ALPHA32F_EXT 0x8816
60 #define GL_LUMINANCE32F_EXT 0x8818
61 #define GL_LUMINANCE_ALPHA32F_EXT 0x8819
62 #define GL_RGBA16F_EXT 0x881A
63 #define GL_RGB16F_EXT 0x881B
64 #define GL_ALPHA16F_EXT 0x881C
65 #define GL_LUMINANCE16F_EXT 0x881E
66 #define GL_LUMINANCE_ALPHA16F_EXT 0x881F
67 #define GL_BGRA8_EXT 0x93A1
68
48 #define GL_GLEXT_PROTOTYPES 1 69 #define GL_GLEXT_PROTOTYPES 1
49 70
50 // Define this for extra GL error debugging (slower). 71 // Define this for extra GL error debugging (slower).
51 // #define GL_ERROR_DEBUGGING 72 // #define GL_ERROR_DEBUGGING
52 #ifdef GL_ERROR_DEBUGGING 73 #ifdef GL_ERROR_DEBUGGING
53 #define CHECK_GL_ERROR() do { \ 74 #define CHECK_GL_ERROR() do { \
54 GLenum gl_error = glGetError(); \ 75 GLenum gl_error = glGetError(); \
55 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \ 76 LOG_IF(ERROR, gl_error != GL_NO_ERROR) << "GL Error :" << gl_error; \
56 } while (0) 77 } while (0)
57 #else // GL_ERROR_DEBUGGING 78 #else // GL_ERROR_DEBUGGING
58 #define CHECK_GL_ERROR() void(0) 79 #define CHECK_GL_ERROR() void(0)
59 #endif // GL_ERROR_DEBUGGING 80 #endif // GL_ERROR_DEBUGGING
60 81
61 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_ 82 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.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