From 1c13c9668a889e56a0c85b51b9f28139c25b76ff Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Mon, 14 Feb 2011 16:51:21 +0000 Subject: Refactor how Gr handles vertex and index data. GrGpu and GrInOrderDrawBuffer both GrBufferAllocPool to manage reserved and set-to-array vertex and index data. rietveld issue 4188049 git-svn-id: http://skia.googlecode.com/svn/trunk@786 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gpu/include/GrUserConfig.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gpu/include/GrUserConfig.h') diff --git a/gpu/include/GrUserConfig.h b/gpu/include/GrUserConfig.h index 155dc8c308..4d44172ec2 100644 --- a/gpu/include/GrUserConfig.h +++ b/gpu/include/GrUserConfig.h @@ -65,6 +65,13 @@ */ //#define GR_AGGRESSIVE_SHADER_OPTS 1 +/* + * This gives a threshold in bytes of when to lock a GrGeometryBuffer vs using + * updateData or updateSubData. (Note the depending on the underlying 3D API + * the update functions may always be implemented using a lock) + */ +//#define GR_GEOM_BUFFER_LOCK_THRESHOLD (1<<15) + /////////////////////////////////////////////////////////////////////////////// /* * temporary flags (may go away soon) -- cgit v1.2.3