aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrUserConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrUserConfig.h')
-rw-r--r--include/gpu/GrUserConfig.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/gpu/GrUserConfig.h b/include/gpu/GrUserConfig.h
index b9df083c48..594889b1a7 100644
--- a/include/gpu/GrUserConfig.h
+++ b/include/gpu/GrUserConfig.h
@@ -21,7 +21,16 @@
#define GR_DEBUG 1
#endif
-/*
+/**
+ * When drawing rects this causes Ganesh to use a vertex buffer containing
+ * a unit square that is positioned by a matrix. Enable on systems where
+ * emitting per-rect-draw verts is more expensive than constant/matrix
+ * updates. Defaults to 0.
+ */
+//#define GR_STATIC_RECT_VB 1
+
+
+/**
* This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using
* updateData. (Note the depending on the underlying 3D API the update functions
* may always be implemented using a lock)