aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include/GrConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/include/GrConfig.h')
-rw-r--r--gpu/include/GrConfig.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gpu/include/GrConfig.h b/gpu/include/GrConfig.h
index 9ee37c73cc..b3025f389d 100644
--- a/gpu/include/GrConfig.h
+++ b/gpu/include/GrConfig.h
@@ -371,6 +371,22 @@ inline void GrCrash(const char* msg) { GrPrintf(msg); GrAlwaysAssert(false); }
#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1 << 15)
#endif
+/**
+ * Enables/disables use of offscreen AA
+ */
+#if !defined(GR_USE_OFFSCREEN_AA)
+ #define GR_USE_OFFSCREEN_AA 1
+#endif
+
+/**
+ * GR_MAX_OFFSCREEN_AA_SIZE controls the size at which offscreen AA will tile.
+ * Tiling saves GPU memory by limiting the size of the offscreen buffer. The
+ * max offscreen may be as large as (4*GR_MAX_OFFSCREEN_AA_SIZE)^2 pixels.
+ */
+#if !defined(GR_MAX_OFFSCREEN_AA_SIZE)
+ #define GR_MAX_OFFSCREEN_AA_SIZE 256
+#endif
+
///////////////////////////////////////////////////////////////////////////////
// tail section:
//