diff options
author | 2014-11-14 06:47:39 -0800 | |
---|---|---|
committer | 2014-11-14 06:47:39 -0800 | |
commit | ac49acda520292b059bc37fd368dff912626c3d9 (patch) | |
tree | 64b8e7e0e2471aac0c27f0eb947c4a4f9dc0a4b3 /include/gpu/GrUserConfig.h | |
parent | 407aa584d183c1bf314f5defd1cf0202e8a96c89 (diff) |
Revert of Replace GrResourceCache with GrResourceCache2. (patchset #7 id:120001 of https://codereview.chromium.org/716143004/)
Reason for revert:
broken again
Original issue's description:
> Replace GrResourceCache with GrResourceCache2.
>
> BUG=skia:2889
>
> Committed: https://skia.googlesource.com/skia/+/66a450f21a3da174b7eed89a1d5fc8591e8b6ee6
>
> Committed: https://skia.googlesource.com/skia/+/407aa584d183c1bf314f5defd1cf0202e8a96c89
TBR=robertphillips@google.com
NOTREECHECKS=true
NOTRY=true
BUG=skia:2889
Review URL: https://codereview.chromium.org/726913002
Diffstat (limited to 'include/gpu/GrUserConfig.h')
-rw-r--r-- | include/gpu/GrUserConfig.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/gpu/GrUserConfig.h b/include/gpu/GrUserConfig.h index 4ff95f73b5..092ff9d8bc 100644 --- a/include/gpu/GrUserConfig.h +++ b/include/gpu/GrUserConfig.h @@ -19,4 +19,16 @@ */ //#define GR_GEOM_BUFFER_MAP_THRESHOLD (1<<15) +/** + * This 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. + */ +//#define GR_DEFAULT_RESOURCE_CACHE_MB_LIMIT 96 + +/** + * This 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. + */ +//#define GR_DEFAULT_RESOURCE_CACHE_COUNT_LIMIT 2048 + #endif |