LuckyPictureCache constructor
LuckyPictureCache({
- LuckyCacheMode mode = LuckyCacheMode.picture,
- int maxRasterSide = kLuckyDefaultMaxRasterSide,
- int maxRasterBytes = kLuckyDefaultMaxRasterBytes,
创建缓存;位图超过 maxRasterSide 或共享预算时由调用方回退到 Picture。
实验性(可能调整):maxRasterBytes 是共享占用上限,0 禁用 raster。
Implementation
LuckyPictureCache(
{this.mode = LuckyCacheMode.picture,
this.maxRasterSide = kLuckyDefaultMaxRasterSide,
this.maxRasterBytes = kLuckyDefaultMaxRasterBytes});