| Index: include/gpu/GrConfig.h
|
| diff --git a/include/gpu/GrConfig.h b/include/gpu/GrConfig.h
|
| index d48ccd5dc6ff5de1d0a8d05d30c7a35c009afe80..e70c978fc000d8ffdb1d45fa2890c57380bf4180 100644
|
| --- a/include/gpu/GrConfig.h
|
| +++ b/include/gpu/GrConfig.h
|
| @@ -213,6 +213,24 @@
|
| #endif
|
|
|
| /**
|
| + * GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT gives a threshold (in megabytes) for the
|
| + * maximum size of the texture cache in vram. The value is only a default and
|
| + * can be overridden at runtime.
|
| + */
|
| +#if !defined(GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT)
|
| + #define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96
|
| +#endif
|
| +
|
| +/**
|
| + * GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT specifies the maximum number of
|
| + * textures the texture cache can hold in vram. The value is only a default and
|
| + * can be overridden at runtime.
|
| + */
|
| +#if !defined(GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT)
|
| + #define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048
|
| +#endif
|
| +
|
| +/**
|
| * GR_STROKE_PATH_RENDERING controls whether or not the GrStrokePathRenderer can be selected
|
| * as a path renderer. GrStrokePathRenderer is currently an experimental path renderer.
|
| */
|
|
|