Home | History | Annotate | Download | only in core

Lines Matching refs:ctable

12 static bool is_valid(const SkImageInfo& info, SkColorTable* ctable) {
25 if (kIndex8_SkColorType == info.fColorType && NULL == ctable) {
28 if (kIndex8_SkColorType != info.fColorType && NULL != ctable) {
38 SkColorTable* ctable) {
39 if (!is_valid(info, ctable)) {
42 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, false));
47 SkColorTable* ctable) {
48 if (!is_valid(info, ctable)) {
79 return SkNEW_ARGS(SkMallocPixelRef, (info, addr, rowBytes, ctable, true));
85 size_t rowBytes, SkColorTable* ctable,
90 SkASSERT(is_valid(info, ctable));
94 ctable = NULL;
98 fCTable = ctable;
100 SkSafeRef(ctable);
112 void* SkMallocPixelRef::onLockPixels(SkColorTable** ctable) {
113 *ctable = fCTable;