Lines Matching refs:ctable

254 void SkBitmap::setPixels(void* p, SkColorTable* ctable) {  in setPixels()  argument
265 SkPixelRef* pr = SkMallocPixelRef::NewDirect(fInfo, p, fRowBytes, ctable); in setPixels()
278 bool SkBitmap::tryAllocPixels(Allocator* allocator, SkColorTable* ctable) { in tryAllocPixels() argument
284 return allocator->allocPixelRef(this, ctable); in tryAllocPixels()
319 SkColorTable* ctable) { in tryAllocPixels() argument
320 if (kIndex_8_SkColorType == requestedInfo.colorType() && nullptr == ctable) { in tryAllocPixels()
335 SkPixelRef* pr = factory->create(correctedInfo, correctedInfo.minRowBytes(), ctable); in tryAllocPixels()
388 pixmap.rowBytes(), pixmap.ctable(), in installPixels()
439 SkColorTable* ctable) { in allocPixelRef() argument
446 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, dst->rowBytes(), ctable); in allocPixelRef()
643 const SkColorTable* ctable = pmap.ctable(); in compute_is_opaque() local
644 if (nullptr == ctable) { in compute_is_opaque()
647 const SkPMColor* table = ctable->readColors(); in compute_is_opaque()
649 for (int i = ctable->count() - 1; i >= 0; --i) { in compute_is_opaque()
882 SkAutoTUnref<SkColorTable> ctable; in copyTo() local
884 ctable.reset(SkRef(srcPM.ctable())); in copyTo()
886 if (!tmpDst.tryAllocPixels(alloc, ctable)) { in copyTo()
999 const SkColorTable* ct = pmap.ctable(); in get_bitmap_alpha()
1118 const SkColorTable* ct = pmap.ctable(); in write_raw_pixels()
1181 SkAutoTUnref<SkColorTable> ctable; in ReadRawPixels() local
1183 ctable.reset(SkColorTable::Create(*buffer)); in ReadRawPixels()
1184 if (!ctable) { in ReadRawPixels()
1190 if (ctable->count() != 0) { in ReadRawPixels()
1196 if (ctable->count() == 0) { in ReadRawPixels()
1200 unsigned char maxIndex = ctable->count() - 1; in ReadRawPixels()
1208 ctable.get(), data.get())); in ReadRawPixels()