Lines Matching refs:ctable
18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) { in is_valid() argument
30 if (kIndex8_SkColorType == info.fColorType && nullptr == ctable) { in is_valid()
33 if (kIndex8_SkColorType != info.fColorType && ctable) { in is_valid()
43 SkColorTable* ctable) { in NewDirect() argument
44 if (!is_valid(info, ctable)) { in NewDirect()
47 return new SkMallocPixelRef(info, addr, rowBytes, ctable, nullptr, nullptr); in NewDirect()
54 SkColorTable* ctable) { in NewUsing() argument
55 if (!is_valid(info, ctable)) { in NewUsing()
87 return new SkMallocPixelRef(info, addr, rowBytes, ctable, sk_free_releaseproc, nullptr); in NewUsing()
92 SkColorTable* ctable) { in NewAllocate() argument
94 return NewUsing(sk_malloc_nothrow, info, rowBytes, ctable); in NewAllocate()
99 SkColorTable* ctable) { in NewZeroed() argument
100 return NewUsing(sk_calloc, info, rowBytes, ctable); in NewZeroed()
105 SkColorTable* ctable, in NewWithProc() argument
109 if (!is_valid(info, ctable)) { in NewWithProc()
112 return new SkMallocPixelRef(info, addr, rowBytes, ctable, proc, context); in NewWithProc()
121 SkColorTable* ctable, in NewWithData() argument
124 if (!is_valid(info, ctable)) { in NewWithData()
133 new SkMallocPixelRef(info, const_cast<void*>(data->data()), rowBytes, ctable, in NewWithData()
145 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef() argument
151 SkASSERT(is_valid(info, ctable)); in SkMallocPixelRef()
155 ctable = nullptr; in SkMallocPixelRef()
159 fCTable = ctable; in SkMallocPixelRef()
161 SkSafeRef(ctable); in SkMallocPixelRef()
167 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef() argument
174 SkASSERT(is_valid(info, ctable)); in SkMallocPixelRef()
178 ctable = nullptr; in SkMallocPixelRef()
182 fCTable = ctable; in SkMallocPixelRef()
184 SkSafeRef(ctable); in SkMallocPixelRef()
215 SkColorTable* ctable) { in create() argument
216 return SkMallocPixelRef::NewAllocate(info, rowBytes, ctable); in create()
220 SkColorTable* ctable) { in create() argument
221 return SkMallocPixelRef::NewZeroed(info, rowBytes, ctable); in create()