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

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

Issue 144003006: Turn NVPR on by default (but off in tools). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix Created 6 years, 11 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 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 * function, and then checking that the error is still GL_NO_ERROR. When the 86 * function, and then checking that the error is still GL_NO_ERROR. When the
87 * value is 0 we will assume no error was generated without checking. 87 * value is 0 we will assume no error was generated without checking.
88 * 88 *
89 * GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT: We will normally check the FBO status 89 * GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT: We will normally check the FBO status
90 * every time we bind a texture or renderbuffer to an FBO. However, in some 90 * every time we bind a texture or renderbuffer to an FBO. However, in some
91 * environments CheckFrameBufferStatus is very expensive. If this is set we will 91 * environments CheckFrameBufferStatus is very expensive. If this is set we will
92 * check the first time we use a color format or a combination of color / 92 * check the first time we use a color format or a combination of color /
93 * stencil formats as attachments. If the FBO is complete we will assume 93 * stencil formats as attachments. If the FBO is complete we will assume
94 * subsequent attachments with the same formats are complete as well. 94 * subsequent attachments with the same formats are complete as well.
95 * 95 *
96 * GR_GL_USE_NV_PATH_RENDERING: Enable experimental support for
97 * GL_NV_path_rendering. There are known issues with clipping, non-AA paths, and
98 * perspective.
99 *
100 * GR_GL_MUST_USE_VBO: Indicates that all vertices and indices must be rendered 96 * GR_GL_MUST_USE_VBO: Indicates that all vertices and indices must be rendered
101 * from VBOs. Chromium's command buffer doesn't allow glVertexAttribArray with 97 * from VBOs. Chromium's command buffer doesn't allow glVertexAttribArray with
102 * ARARY_BUFFER 0 bound or glDrawElements with ELEMENT_ARRAY_BUFFER 0 bound. 98 * ARARY_BUFFER 0 bound or glDrawElements with ELEMENT_ARRAY_BUFFER 0 bound.
103 * 99 *
104 * GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE is for compatibility with the new versi on 100 * GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE is for compatibility with the new versi on
105 * of the OpenGLES2.0 headers from Khronos. glShaderSource now takes a const ch ar * const *, 101 * of the OpenGLES2.0 headers from Khronos. glShaderSource now takes a const ch ar * const *,
106 * instead of a const char 102 * instead of a const char
107 */ 103 */
108 104
109 #if !defined(GR_GL_LOG_CALLS) 105 #if !defined(GR_GL_LOG_CALLS)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 #endif 147 #endif
152 148
153 #if !defined(GR_GL_CHECK_ALLOC_WITH_GET_ERROR) 149 #if !defined(GR_GL_CHECK_ALLOC_WITH_GET_ERROR)
154 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 1 150 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 1
155 #endif 151 #endif
156 152
157 #if !defined(GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT) 153 #if !defined(GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT)
158 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 0 154 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 0
159 #endif 155 #endif
160 156
161 #if !defined(GR_GL_USE_NV_PATH_RENDERING)
162 #define GR_GL_USE_NV_PATH_RENDERING 0
163 #endif
164
165 #if !defined(GR_GL_MUST_USE_VBO) 157 #if !defined(GR_GL_MUST_USE_VBO)
166 #define GR_GL_MUST_USE_VBO 0 158 #define GR_GL_MUST_USE_VBO 0
167 #endif 159 #endif
168 160
169 #if !defined(GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE) 161 #if !defined(GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE)
170 #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 0 162 #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 0
171 #endif 163 #endif
172 164
173 /** 165 /**
174 * There is a strange bug that occurs on Macs with NVIDIA GPUs. We don't 166 * There is a strange bug that occurs on Macs with NVIDIA GPUs. We don't
(...skipping 18 matching lines...) Expand all
193 * trick every 128 array buffer uploads. 185 * trick every 128 array buffer uploads.
194 * 186 *
195 * Hopefully we will understand this better and have a cleaner fix or get a 187 * Hopefully we will understand this better and have a cleaner fix or get a
196 * OS/driver level fix. 188 * OS/driver level fix.
197 */ 189 */
198 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \ 190 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \
199 (defined(SK_BUILD_FOR_MAC) && \ 191 (defined(SK_BUILD_FOR_MAC) && \
200 !GR_GL_USE_BUFFER_DATA_NULL_HINT) 192 !GR_GL_USE_BUFFER_DATA_NULL_HINT)
201 193
202 #endif 194 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698