aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include/GrUserConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/include/GrUserConfig.h')
-rw-r--r--gpu/include/GrUserConfig.h47
1 files changed, 29 insertions, 18 deletions
diff --git a/gpu/include/GrUserConfig.h b/gpu/include/GrUserConfig.h
index 3bb3d75ba6..42a977b595 100644
--- a/gpu/include/GrUserConfig.h
+++ b/gpu/include/GrUserConfig.h
@@ -1,17 +1,3 @@
-#ifndef GrUserConfig_DEFINED
-#define GrUserConfig_DEFINED
-
-#if defined(GR_USER_CONFIG_FILE)
- #error "default user config pulled in but GR_USER_CONFIG_FILE is defined."
-#endif
-
-#if 0
- #undef GR_RELEASE
- #undef GR_DEBUG
- #define GR_RELEASE 0
- #define GR_DEBUG 1
-#endif
-
/*
Copyright 2010 Google Inc.
@@ -19,7 +5,7 @@
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@@ -28,6 +14,20 @@
limitations under the License.
*/
+#ifndef GrUserConfig_DEFINED
+#define GrUserConfig_DEFINED
+
+#if defined(GR_USER_CONFIG_FILE)
+ #error "default user config pulled in but GR_USER_CONFIG_FILE is defined."
+#endif
+
+#if 0
+ #undef GR_RELEASE
+ #undef GR_DEBUG
+ #define GR_RELEASE 0
+ #define GR_DEBUG 1
+#endif
+
//#define GR_FORCE_GLCHECKERR 1
/*
@@ -47,11 +47,22 @@
/*
* To log all GL calls define this. Can be turned on and off at runtime by
- * gPrintGL global variable.
+ * gPrintGL global variable.
*/
//#define GR_GL_LOG_CALLS 1
-
-////////////////////////////////////////////////////////////////////////////////
+
+///////////////////////////////////////////////////////////////////////////////
+/*
+ * temporary flags (may go away soon)
+ */
+
+// specific changes for current Chrome build
+//#define GR_CHROME_BUILD 1
+
+// disable 2-point-radial gradient shader programs
+//#define GR_SKIP_2POINTRADIAL_PROGRAMS
+
+///////////////////////////////////////////////////////////////////////////////
// Decide Ganesh types
#define GR_SCALAR_IS_FIXED 0