| Index: include/gpu/GrContextOptions.h
|
| diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
|
| index dfb352b5078041e30cd27f0b4f6134fb0da02791..d8d59fac3a89186a6705279f446ef5c2ca978271 100644
|
| --- a/include/gpu/GrContextOptions.h
|
| +++ b/include/gpu/GrContextOptions.h
|
| @@ -15,7 +15,8 @@ struct GrContextOptions {
|
| : fDrawPathToCompressedTexture(false)
|
| , fSuppressPrints(false)
|
| , fMaxTextureSizeOverride(SK_MaxS32)
|
| - , fSuppressDualSourceBlending(false) {}
|
| + , fSuppressDualSourceBlending(false)
|
| + , fGeometryBufferMapThreshold(1 << 15) {}
|
|
|
| // EXPERIMENTAL
|
| // May be removed in the future, or may become standard depending
|
| @@ -31,6 +32,12 @@ struct GrContextOptions {
|
|
|
| int fMaxTextureSizeOverride;
|
| bool fSuppressDualSourceBlending;
|
| +
|
| + /** fGeometryBufferMapThreshold gives a threshold (in bytes) for when Gr should
|
| + map a GrGeometryBuffer to update its contents. It will use map() if the
|
| + size of the updated region is greater than the threshold. Otherwise it will
|
| + use updateData(). */
|
| + size_t fGeometryBufferMapThreshold;
|
| };
|
|
|
| #endif
|
|
|