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

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

Issue 876933004: Fix indirect use of defined() directive (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 | no next file » | 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 * 170 *
171 * The issue is tracked at: 171 * The issue is tracked at:
172 * http://code.google.com/p/chromium/issues/detail?id=114865 172 * http://code.google.com/p/chromium/issues/detail?id=114865
173 * 173 *
174 * When the workaround is enabled we will use the glBufferData / glBufferSubData 174 * When the workaround is enabled we will use the glBufferData / glBufferSubData
175 * trick every 128 array buffer uploads. 175 * trick every 128 array buffer uploads.
176 * 176 *
177 * Hopefully we will understand this better and have a cleaner fix or get a 177 * Hopefully we will understand this better and have a cleaner fix or get a
178 * OS/driver level fix. 178 * OS/driver level fix.
179 */ 179 */
180 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \ 180 #if (defined(SK_BUILD_FOR_MAC) && !GR_GL_USE_BUFFER_DATA_NULL_HINT)
181 (defined(SK_BUILD_FOR_MAC) && \ 181 # define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND 1
182 !GR_GL_USE_BUFFER_DATA_NULL_HINT) 182 #else
183 # define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND 0
184 #endif
183 185
184 #endif 186 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698