Lines Matching refs:ctable
18 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) {
31 if (kIndex8_SkColorType == info.fColorType && NULL == ctable) {
34 if (kIndex8_SkColorType != info.fColorType && NULL != ctable) {
44 SkColorTable* ctable) {
45 if (!is_valid(info, ctable)) {
49 (info, addr, rowBytes, ctable, NULL, NULL));
55 SkColorTable* ctable) {
56 if (!is_valid(info, ctable)) {
88 (info, addr, rowBytes, ctable,
94 SkColorTable* ctable,
98 if (!is_valid(info, ctable)) {
102 (info, addr, rowBytes, ctable, proc, context));
111 SkColorTable* ctable,
114 if (!is_valid(info, ctable)) {
124 (info, const_cast<void*>(data->data()), rowBytes, ctable,
136 size_t rowBytes, SkColorTable* ctable,
142 SkASSERT(is_valid(info, ctable));
146 ctable = NULL;
150 fCTable = ctable;
152 SkSafeRef(ctable);
158 size_t rowBytes, SkColorTable* ctable,
165 SkASSERT(is_valid(info, ctable));
169 ctable = NULL;
173 fCTable = ctable;
175 SkSafeRef(ctable);
244 SkColorTable* ctable) {
245 return SkMallocPixelRef::NewAllocate(info, info.minRowBytes(), ctable);