diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-14 16:51:21 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-14 16:51:21 +0000 |
commit | 1c13c9668a889e56a0c85b51b9f28139c25b76ff (patch) | |
tree | 0319884473e77141a574ab07333c6ed4797f7485 /gpu/include/GrUserConfig.h | |
parent | dd53d91b60e368f1bbff6fb22d796765205ae25d (diff) |
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
Diffstat (limited to 'gpu/include/GrUserConfig.h')
-rw-r--r-- | gpu/include/GrUserConfig.h | 7 |
1 files changed, 7 insertions, 0 deletions
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) |