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

Side by Side Diff: include/gpu/gl/GrGLConfig.h

Issue 1207003002: remove workaround for dx9 angle slow rgba pixel ops (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | include/gpu/gl/GrGLConfig_chrome.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 * 58 *
59 * GR_GL_PER_GL_FUNC_CALLBACK: When set to 1 the GrGLInterface object provides 59 * GR_GL_PER_GL_FUNC_CALLBACK: When set to 1 the GrGLInterface object provides
60 * a function pointer that is called just before every gl function. The ptr must 60 * a function pointer that is called just before every gl function. The ptr must
61 * be valid (i.e. there is no NULL check). However, by default the callback will 61 * be valid (i.e. there is no NULL check). However, by default the callback will
62 * be set to a function that does nothing. The signature of the function is: 62 * be set to a function that does nothing. The signature of the function is:
63 * void function(const GrGLInterface*) 63 * void function(const GrGLInterface*)
64 * It is not extern "C". 64 * It is not extern "C".
65 * The GrGLInterface field fCallback specifies the function ptr and there is an 65 * The GrGLInterface field fCallback specifies the function ptr and there is an
66 * additional field fCallbackData of type intptr_t for client data. 66 * additional field fCallbackData of type intptr_t for client data.
67 * 67 *
68 * GR_GL_RGBA_8888_PIXEL_OPS_SLOW: Set this to 1 if it is known that performing
69 * glReadPixels / glTex(Sub)Image with format=GL_RGBA, type=GL_UNISIGNED_BYTE is
70 * significantly slower than format=GL_BGRA, type=GL_UNISIGNED_BYTE.
71 *
72 * GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL: Set this to 1 if calling 68 * GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL: Set this to 1 if calling
73 * glReadPixels to read the entire framebuffer is faster than calling it with 69 * glReadPixels to read the entire framebuffer is faster than calling it with
74 * the same sized rectangle but with a framebuffer bound that is larger than 70 * the same sized rectangle but with a framebuffer bound that is larger than
75 * the rectangle read. 71 * the rectangle read.
76 * 72 *
77 * GR_GL_CHECK_ALLOC_WITH_GET_ERROR: If set to 1 this will then glTexImage, 73 * GR_GL_CHECK_ALLOC_WITH_GET_ERROR: If set to 1 this will then glTexImage,
78 * glBufferData, glRenderbufferStorage, etc will be checked for errors. This 74 * glBufferData, glRenderbufferStorage, etc will be checked for errors. This
79 * amounts to ensuring the error is GL_NO_ERROR, calling the allocating 75 * amounts to ensuring the error is GL_NO_ERROR, calling the allocating
80 * function, and then checking that the error is still GL_NO_ERROR. When the 76 * function, and then checking that the error is still GL_NO_ERROR. When the
81 * value is 0 we will assume no error was generated without checking. 77 * value is 0 we will assume no error was generated without checking.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 #endif 117 #endif
122 118
123 #if !defined(GR_GL_USE_BUFFER_DATA_NULL_HINT) 119 #if !defined(GR_GL_USE_BUFFER_DATA_NULL_HINT)
124 #define GR_GL_USE_BUFFER_DATA_NULL_HINT 1 120 #define GR_GL_USE_BUFFER_DATA_NULL_HINT 1
125 #endif 121 #endif
126 122
127 #if !defined(GR_GL_PER_GL_FUNC_CALLBACK) 123 #if !defined(GR_GL_PER_GL_FUNC_CALLBACK)
128 #define GR_GL_PER_GL_FUNC_CALLBACK 0 124 #define GR_GL_PER_GL_FUNC_CALLBACK 0
129 #endif 125 #endif
130 126
131 #if !defined(GR_GL_RGBA_8888_PIXEL_OPS_SLOW)
132 #define GR_GL_RGBA_8888_PIXEL_OPS_SLOW 0
133 #endif
134
135 #if !defined(GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL) 127 #if !defined(GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL)
136 #define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL 0 128 #define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL 0
137 #endif 129 #endif
138 130
139 #if !defined(GR_GL_CHECK_ALLOC_WITH_GET_ERROR) 131 #if !defined(GR_GL_CHECK_ALLOC_WITH_GET_ERROR)
140 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 1 132 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 1
141 #endif 133 #endif
142 134
143 #if !defined(GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT) 135 #if !defined(GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT)
144 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 0 136 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 0
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 * Hopefully we will understand this better and have a cleaner fix or get a 169 * Hopefully we will understand this better and have a cleaner fix or get a
178 * OS/driver level fix. 170 * OS/driver level fix.
179 */ 171 */
180 #if (defined(SK_BUILD_FOR_MAC) && !GR_GL_USE_BUFFER_DATA_NULL_HINT) 172 #if (defined(SK_BUILD_FOR_MAC) && !GR_GL_USE_BUFFER_DATA_NULL_HINT)
181 # define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND 1 173 # define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND 1
182 #else 174 #else
183 # define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND 0 175 # define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND 0
184 #endif 176 #endif
185 177
186 #endif 178 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/gl/GrGLConfig_chrome.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698