[canvaskit] Bump GPU resource cache to 256MB

Bug: skia:
Change-Id: I398ef2e79076018f3f62e62a2040052eeaf60784
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/206066
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
This commit is contained in:
Florin Malita 2019-04-04 11:14:44 -04:00 committed by Skia Commit-Bot
parent d61446666e
commit a93aa74a39

View File

@ -67,6 +67,10 @@
throw 'failed to create webgl context: err ' + ctx;
}
// Bump the default resource cache limit.
var RESOURCE_CACHE_BYTES = 256 * 1024 * 1024;
ctx.setResourceCacheLimitBytes(RESOURCE_CACHE_BYTES);
if (!canvas && (!width || !height)) {
throw 'height and width must be provided with context';
}