Lines Matching defs:SkDataTable
9 #include "SkDataTable.h"
16 SkDataTable::SkDataTable() {
24 SkDataTable::SkDataTable(const void* array, size_t elemSize, int count,
35 SkDataTable::SkDataTable(const Dir* dir, int count, FreeProc proc, void* ctx) {
45 SkDataTable::~SkDataTable() {
51 size_t SkDataTable::atSize(int index) const {
61 const void* SkDataTable::at(int index, size_t* size) const {
79 SkDataTable* SkDataTable::NewEmpty() {
80 static SkDataTable* gEmpty;
82 gEmpty = new SkDataTable;
88 SkDataTable* SkDataTable::NewCopyArrays(const void * const * ptrs,
91 return SkDataTable::NewEmpty();
111 return new SkDataTable(dir, count, malloc_freeproc, buffer);
114 SkDataTable* SkDataTable::NewCopyArray(const void* array, size_t elemSize,
117 return SkDataTable::NewEmpty();
124 return new SkDataTable(buffer, elemSize, count, malloc_freeproc, buffer);
127 SkDataTable* SkDataTable::NewArrayProc(const void* array, size_t elemSize,
130 return SkDataTable::NewEmpty();
132 return new SkDataTable(array, elemSize, count, proc, ctx);
162 SkDataTable::Dir* dir = fDir.append();
167 SkDataTable* SkDataTableBuilder::detachDataTable() {
170 return SkDataTable::NewEmpty();
174 void* dir = fHeap->alloc(count * sizeof(SkDataTable::Dir),
176 memcpy(dir, fDir.begin(), count * sizeof(SkDataTable::Dir));
178 SkDataTable* table = new SkDataTable((SkDataTable::Dir*)dir, count, chunkalloc_freeproc, fHeap);