• Home
  • Raw
  • Download

Lines Matching refs:ctable

18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) {  in is_valid()  argument
30 if (kIndex8_SkColorType == info.fColorType && NULL == 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()
48 (info, addr, rowBytes, ctable, NULL, NULL)); in NewDirect()
54 SkColorTable* ctable) { in NewAllocate() argument
55 if (!is_valid(info, ctable)) { in NewAllocate()
88 (info, addr, rowBytes, ctable, in NewAllocate()
94 SkColorTable* ctable, in NewWithProc() argument
98 if (!is_valid(info, ctable)) { in NewWithProc()
102 (info, addr, rowBytes, ctable, proc, context)); in NewWithProc()
111 SkColorTable* ctable, in NewWithData() argument
114 if (!is_valid(info, ctable)) { in NewWithData()
124 (info, const_cast<void*>(data->data()), rowBytes, ctable, in NewWithData()
136 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef() argument
142 SkASSERT(is_valid(info, ctable)); in SkMallocPixelRef()
146 ctable = NULL; in SkMallocPixelRef()
150 fCTable = ctable; in SkMallocPixelRef()
152 SkSafeRef(ctable); in SkMallocPixelRef()
158 size_t rowBytes, SkColorTable* ctable, in SkMallocPixelRef() argument
165 SkASSERT(is_valid(info, ctable)); in SkMallocPixelRef()
169 ctable = NULL; in SkMallocPixelRef()
173 fCTable = ctable; in SkMallocPixelRef()
175 SkSafeRef(ctable); in SkMallocPixelRef()
206 SkColorTable* ctable) { in create() argument
207 return SkMallocPixelRef::NewAllocate(info, rowBytes, ctable); in create()