Lines Matching full:cache
134 uint16_t* fCache16; // working ptr. If this is NULL, we need to recompute the cache values
135 SkPMColor* fCache32; // working ptr. If this is NULL, we need to recompute the cache values
139 unsigned fCacheAlpha; // the alpha value we used when we computed the cache. larger than 8bits so we can store uninitialized value
372 // if the new alpha differs from the previous time we were called, inval our cache
373 // this will trigger the cache to be rebuilt.
374 // we don't care about the first time, since the cache ptrs will already be NULL
376 fCache16 = NULL; // inval the cache
377 fCache32 = NULL; // inval the cache
423 void Gradient_Shader::Build16bitCache(uint16_t cache[], SkColor c0, SkColor c1,
445 cache[0] = SkPackRGB16(SkR32ToR16(rr), SkG32ToG16(gg), SkB32ToB16(bb));
446 cache[kCache16Count] = SkDitherPack888ToRGB16(rr, gg, bb);
447 cache += 1;
454 static void build_32bit_cache(SkPMColor cache[], SkColor c0, SkColor c1,
479 *cache++ = SkPreMultiplyARGB(a >> 16, r >> 16, g >> 16, b >> 16);
674 const SkPMColor* cache = this->getCache32();
695 sk_memset32(dstC, cache[fi >> (16 - kCache32Bits)], count);
703 fi = fx >> 8; SkASSERT(fi <= 0xFF); fx += dx; *dstC++ = cache[fi];
704 fi = fx >> 8; SkASSERT(fi <= 0xFF); fx += dx; *dstC++ = cache[fi];
705 fi = fx >> 8; SkASSERT(fi <= 0xFF); fx += dx; *dstC++ = cache[fi];
706 fi = fx >> 8; SkASSERT(fi <= 0xFF); fx += dx; *dstC++ = cache[fi];
715 *dstC++ = cache[fi];
724 *dstC++ = cache[fi];
731 *dstC++ = cache[fi];
739 *dstC++ = cache[fi];
749 *dstC++ = cache[fi >> (16 - kCache32Bits)];
757 // we cache our "bitmap", so it's generationID will be const on subsequent
801 const uint16_t* cache = this->getCache16();
823 dither_memset16(dstC, cache[toggle + fi], cache[(toggle ^ (1 << kCache16Bits)) + fi], count);
829 *dstC++ = cache[toggle + fi];
837 *dstC++ = cache[toggle + fi];
846 *dstC++ = cache[toggle + fi];
859 *dstC++ = cache[toggle + index];
933 const SkPMColor* cache = this->getCache32();
967 *dstC++ = cache[sqrt_table[fi] >> (8 - kCache32Bits)];
978 *dstC++ = cache[fi >> (16 - kCache32Bits)];
990 *dstC++ = cache[fi >> (16 - kCache32Bits)];
1004 *dstC++ = cache[fi >> (16 - kCache32Bits)];
1016 const uint16_t* cache = this->getCache16();
1056 *dstC++ = cache[toggle + (sqrt_table[fi] >> (8 - kCache16Bits))];
1067 *dstC++ = cache[toggle + (sqrt_table[fi] >> (8 - kCache16Bits))];
1078 *dstC++ = cache[toggle + (fi >> (16 - kCache16Bits))];
1089 *dstC++ = cache[toggle + (fi >> (16 - kCache16Bits))];
1102 *dstC++ = cache[toggle + index];
1242 const SkPMColor* cache = this->getCache32();
1277 *dstC++ = cache[index >> (16 - kCache32Bits)];
1289 *dstC++ = cache[index >> (16 - kCache32Bits)];
1302 *dstC++ = cache[index >> (16 - kCache32Bits)];
1323 *dstC++ = cache[index >> (16 - kCache32Bits)];
1631 const SkPMColor* cache = this->getCache32();
1658 *dstC++ = cache[SkATan2_255(fy, fx)];
1672 *dstC++ = cache[index];
1681 const uint16_t* cache = this->getCache16();
1710 *dstC++ = cache[toggle + index];
1726 *dstC++ = cache[toggle + index];