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

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

Issue 695663003: Cleanup: Go with SkDebugf instead of GrPrintf. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « include/gpu/GrConfig.h ('k') | src/gpu/GrAARectRenderer.cpp » ('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 12 matching lines...) Expand all
23 #if !defined(GR_GL_FUNCTION_TYPE) 23 #if !defined(GR_GL_FUNCTION_TYPE)
24 #define GR_GL_FUNCTION_TYPE 24 #define GR_GL_FUNCTION_TYPE
25 #endif 25 #endif
26 26
27 /** 27 /**
28 * The following are optional defines that can be enabled at the compiler 28 * The following are optional defines that can be enabled at the compiler
29 * command line, in a IDE project, in a GrUserConfig.h file, or in a GL custom 29 * command line, in a IDE project, in a GrUserConfig.h file, or in a GL custom
30 * file (if one is in use). If a GR_GL_CUSTOM_SETUP_HEADER is used they can 30 * file (if one is in use). If a GR_GL_CUSTOM_SETUP_HEADER is used they can
31 * also be placed there. 31 * also be placed there.
32 * 32 *
33 * GR_GL_LOG_CALLS: if 1 Gr can print every GL call using GrPrintf. Defaults to 33 * GR_GL_LOG_CALLS: if 1 Gr can print every GL call using SkDebugf. Defaults to
34 * 0. Logging can be enabled and disabled at runtime using a debugger via to 34 * 0. Logging can be enabled and disabled at runtime using a debugger via to
35 * global gLogCallsGL. The initial value of gLogCallsGL is controlled by 35 * global gLogCallsGL. The initial value of gLogCallsGL is controlled by
36 * GR_GL_LOG_CALLS_START. 36 * GR_GL_LOG_CALLS_START.
37 * 37 *
38 * GR_GL_LOG_CALLS_START: controls the initial value of gLogCallsGL when 38 * GR_GL_LOG_CALLS_START: controls the initial value of gLogCallsGL when
39 * GR_GL_LOG_CALLS is 1. Defaults to 0. 39 * GR_GL_LOG_CALLS is 1. Defaults to 0.
40 * 40 *
41 * GR_GL_CHECK_ERROR: if enabled Gr can do a glGetError() after every GL call. 41 * GR_GL_CHECK_ERROR: if enabled Gr can do a glGetError() after every GL call.
42 * Defaults to 1 if SK_DEBUG is set, otherwise 0. When GR_GL_CHECK_ERROR is 1 42 * Defaults to 1 if SK_DEBUG is set, otherwise 0. When GR_GL_CHECK_ERROR is 1
43 * this can be toggled in a debugger using the gCheckErrorGL global. The initial 43 * this can be toggled in a debugger using the gCheckErrorGL global. The initial
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \
181 (defined(SK_BUILD_FOR_MAC) && \ 181 (defined(SK_BUILD_FOR_MAC) && \
182 !GR_GL_USE_BUFFER_DATA_NULL_HINT) 182 !GR_GL_USE_BUFFER_DATA_NULL_HINT)
183 183
184 #endif 184 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrConfig.h ('k') | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698