/external/skia/legacy/include/core/ |
D | SkTDArray.h | 19 fArray = NULL; in SkTDArray() 28 fArray = NULL; in SkTDArray() 33 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray() 35 fData = (ArrayT*)fArray; in SkTDArray() 37 memcpy(fArray, src, sizeof(T) * count); in SkTDArray() 43 fArray = NULL; in SkTDArray() 47 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray() 51 sk_free(fArray); in ~SkTDArray() 57 SkTDArray<T> tmp(src.fArray, src.fCount); 60 memcpy(fArray, src.fArray, sizeof(T) * src.fCount); [all …]
|
D | SkTemplates.h | 74 SkAutoTDeleteArray(T array[]) : fArray(array) {} in SkAutoTDeleteArray() 75 ~SkAutoTDeleteArray() { delete[] fArray; } in ~SkAutoTDeleteArray() 77 T* get() const { return fArray; } in get() 78 void free() { delete[] fArray; fArray = NULL; } in free() 79 T* detach() { T* array = fArray; fArray = NULL; return array; } in detach() 82 T* fArray; 92 fArray = NULL; in SkAutoTArray() 94 fArray = new T[count]; in SkAutoTArray() 100 delete[] fArray; in ~SkAutoTArray() 105 T* get() const { return fArray; } in get() [all …]
|
D | SkTDict.h | 23 fArray.reset(); in reset() 27 int count() const { return fArray.count(); } in count() 42 fArray[index].fValue = value; in set() 47 Pair* pair = fArray.insert(~index); in set() 79 *value = fArray[index].fValue; in find() 87 Pair* end = fArray.end(); in findKey() 88 for (Pair* pair = fArray.begin(); pair < end; pair++) { in findKey() 118 fIter = dict.fArray.begin(); in Iter() 119 fStop = dict.fArray.end(); in Iter() 139 SkTDArray<Pair> fArray; [all …]
|
/external/skia/include/core/ |
D | SkTDArray.h | 19 fArray = NULL; in SkTDArray() 28 fArray = NULL; in SkTDArray() 33 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray() 35 fData = (ArrayT*)fArray; in SkTDArray() 37 memcpy(fArray, src, sizeof(T) * count); in SkTDArray() 43 fArray = NULL; in SkTDArray() 47 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray() 51 sk_free(fArray); in ~SkTDArray() 57 SkTDArray<T> tmp(src.fArray, src.fCount); 60 memcpy(fArray, src.fArray, sizeof(T) * src.fCount); [all …]
|
D | SkTemplates.h | 112 SkAutoTDeleteArray(T array[]) : fArray(array) {} 113 ~SkAutoTDeleteArray() { SkDELETE_ARRAY(fArray); } 115 T* get() const { return fArray; } 116 void free() { SkDELETE_ARRAY(fArray); fArray = NULL; } 117 T* detach() { T* array = fArray; fArray = NULL; return array; } 120 T* fArray; 128 fArray = NULL; 135 fArray = NULL; 137 fArray = new T[count]; 145 delete[] fArray; [all …]
|
D | SkTDict.h | 23 fArray.reset(); in reset() 27 int count() const { return fArray.count(); } in count() 42 fArray[index].fValue = value; in set() 47 Pair* pair = fArray.insert(~index); in set() 79 *value = fArray[index].fValue; in find() 87 Pair* end = fArray.end(); in findKey() 88 for (Pair* pair = fArray.begin(); pair < end; pair++) { in findKey() 118 fIter = dict.fArray.begin(); in Iter() 119 fStop = dict.fArray.end(); in Iter() 139 SkTDArray<Pair> fArray; [all …]
|
/external/skia/legacy/src/animator/ |
D | SkTypedArray.cpp | 32 fArray = NULL; in SkDS32Array() 41 fArray = NULL; in SkDS32Array() 45 SkDS32Array tmp(src.fArray, src.fCount); in SkDS32Array() 54 fArray = NULL; in SkDS32Array() 60 fArray = (int32_t*)sk_malloc_throw(count * sizeof(int32_t)); in SkDS32Array() 62 fData = (int32_t (*)[kDebugArraySize]) fArray; in SkDS32Array() 64 memcpy(fArray, src, sizeof(int32_t) * count); in SkDS32Array() 75 SkDS32Array tmp(src.fArray, src.fCount); in operator =() 80 memcpy(fArray, src.fArray, sizeof(int32_t) * src.fCount); in operator =() 90 (a.fCount == 0 || !memcmp(a.fArray, b.fArray, a.fCount * sizeof(int32_t))); in operator ==() [all …]
|
D | SkTDArray_Experimental.h | 60 memmove(fArray + index, fArray + index + count, sizeof(int32_t) * (fCount - index)); 65 if (fArray) in reset() 67 sk_free(fArray); in reset() 68 fArray = NULL; in reset() 94 int32_t* fArray; variable 100 #define SYNC() fTData = (T (*)[kDebugArraySize]) fArray 109 ~SkTDS32Array() { sk_free(fArray); } in ~SkTDS32Array() 110 …tor[](int index) const { SYNC(); SkASSERT((unsigned)index < fCount); return ((T*) fArray)[index]; } 118 T* begin() const { SYNC(); return (T*) fArray; } in begin() 119 T* end() const { return (T*) (fArray ? fArray + fCount : NULL); } in end()
|
D | SkMemberInfo.cpp | 377 …memcpy(&storage->fScalar, scriptValue.fOperand.fArray->begin(), scriptValue.fOperand.fArray->count… in writeValue() 389 displayable->executeFunction(displayable, this, scriptValue.fOperand.fArray, NULL); in writeValue() 391 int count = scriptValue.fOperand.fArray->count(); in writeValue() 399 …memcpy(&(*arrayStorage)[storageOffset], scriptValue.fOperand.fArray->begin(), count * sizeof(SkOpe… in writeValue() 413 type = scriptValue.fOperand.fArray->getType(); in writeValue() 416 SkASSERT(type == scriptValue.fOperand.fArray->getType()); in writeValue() 417 int count = scriptValue.fOperand.fArray->count(); in writeValue() 420 …memcpy(destArray->begin() + storageOffset, scriptValue.fOperand.fArray->begin(), sizeof(SkOperand)… in writeValue() 426 SkTypedArray* array = scriptValue.fOperand.fArray; in writeValue() 449 int count = scriptValue.fOperand.fArray->count(); in writeValue() [all …]
|
/external/skia/src/animator/ |
D | SkTypedArray.cpp | 32 fArray = NULL; in SkDS32Array() 41 fArray = NULL; in SkDS32Array() 45 SkDS32Array tmp(src.fArray, src.fCount); in SkDS32Array() 54 fArray = NULL; in SkDS32Array() 60 fArray = (int32_t*)sk_malloc_throw(count * sizeof(int32_t)); in SkDS32Array() 62 fData = (int32_t (*)[kDebugArraySize]) fArray; in SkDS32Array() 64 memcpy(fArray, src, sizeof(int32_t) * count); in SkDS32Array() 75 SkDS32Array tmp(src.fArray, src.fCount); in operator =() 80 memcpy(fArray, src.fArray, sizeof(int32_t) * src.fCount); in operator =() 90 (a.fCount == 0 || !memcmp(a.fArray, b.fArray, a.fCount * sizeof(int32_t))); in operator ==() [all …]
|
D | SkTDArray_Experimental.h | 60 memmove(fArray + index, fArray + index + count, sizeof(int32_t) * (fCount - index)); 65 if (fArray) in reset() 67 sk_free(fArray); in reset() 68 fArray = NULL; in reset() 94 int32_t* fArray; variable 100 #define SYNC() fTData = (T (*)[kDebugArraySize]) fArray 109 ~SkTDS32Array() { sk_free(fArray); } in ~SkTDS32Array() 110 …tor[](int index) const { SYNC(); SkASSERT((unsigned)index < fCount); return ((T*) fArray)[index]; } 118 T* begin() const { SYNC(); return (T*) fArray; } in begin() 119 T* end() const { return (T*) (fArray ? fArray + fCount : NULL); } in end()
|
D | SkMemberInfo.cpp | 377 …memcpy(&storage->fScalar, scriptValue.fOperand.fArray->begin(), scriptValue.fOperand.fArray->count… in writeValue() 389 displayable->executeFunction(displayable, this, scriptValue.fOperand.fArray, NULL); in writeValue() 391 int count = scriptValue.fOperand.fArray->count(); in writeValue() 399 …memcpy(&(*arrayStorage)[storageOffset], scriptValue.fOperand.fArray->begin(), count * sizeof(SkOpe… in writeValue() 413 type = scriptValue.fOperand.fArray->getType(); in writeValue() 416 SkASSERT(type == scriptValue.fOperand.fArray->getType()); in writeValue() 417 int count = scriptValue.fOperand.fArray->count(); in writeValue() 420 …memcpy(destArray->begin() + storageOffset, scriptValue.fOperand.fArray->begin(), sizeof(SkOperand)… in writeValue() 426 SkTypedArray* array = scriptValue.fOperand.fArray; in writeValue() 449 int count = scriptValue.fOperand.fArray->count(); in writeValue() [all …]
|
/external/skia/bench/ |
D | ScalarBench.cpp | 68 init9(fArray); in FloatComparisonBench() 73 always_do(fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f); in performTest() 74 always_do(fArray[2] != 0.0f || fArray[5] != 0.0f); in performTest() 77 float fArray[9]; member in FloatComparisonBench 85 init9(fArray); in ForcedIntComparisonBench() 90 always_do(SkScalarAs2sCompliment(fArray[6]) | in performTest() 91 SkScalarAs2sCompliment(fArray[7]) | in performTest() 92 (SkScalarAs2sCompliment(fArray[8]) - kPersp1Int)); in performTest() 93 always_do(SkScalarAs2sCompliment(fArray[2]) | in performTest() 94 SkScalarAs2sCompliment(fArray[5])); in performTest() [all …]
|
D | MatrixBench.cpp | 226 fArray[0] = (float) fRnd.nextS(); in GetTypeMatrixBench() 227 fArray[1] = (float) fRnd.nextS(); in GetTypeMatrixBench() 228 fArray[2] = (float) fRnd.nextS(); in GetTypeMatrixBench() 229 fArray[3] = (float) fRnd.nextS(); in GetTypeMatrixBench() 230 fArray[4] = (float) fRnd.nextS(); in GetTypeMatrixBench() 231 fArray[5] = (float) fRnd.nextS(); in GetTypeMatrixBench() 232 fArray[6] = (float) fRnd.nextS(); in GetTypeMatrixBench() 233 fArray[7] = (float) fRnd.nextS(); in GetTypeMatrixBench() 234 fArray[8] = (float) fRnd.nextS(); in GetTypeMatrixBench() 241 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest() [all …]
|
/external/skia/src/core/ |
D | SkPictureFlat.cpp | 23 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(NULL) {} in SK_DEFINE_INST_COUNT() 31 SkASSERT(fArray[i]); in reset() 32 fArray[i]->unref(); in reset() 34 SkDELETE_ARRAY(fArray); in reset() 38 fArray = SkNEW_ARRAY(SkRefCnt*, fCount); in reset() 39 rec->copyToArray(fArray); in reset() 41 fArray[i]->ref(); in reset() 45 fArray = NULL; in reset() 53 fArray = SkNEW_ARRAY(SkRefCnt*, count); in setCount() 54 sk_bzero(fArray, count * sizeof(SkRefCnt*)); in setCount() [all …]
|
D | SkTypefaceCache.cpp | 19 if (fArray.count() >= TYPEFACE_CACHE_LIMIT) { in add() 23 Rec* rec = fArray.append(); in add() 35 const Rec* curr = fArray.begin(); in findByID() 36 const Rec* stop = fArray.end(); in findByID() 47 const Rec* curr = fArray.begin(); in findByProcAndRef() 48 const Rec* stop = fArray.end(); in findByProcAndRef() 67 int count = fArray.count(); in purge() 70 SkTypeface* face = fArray[i].fFace; in purge() 71 bool strong = fArray[i].fStrong; in purge() 80 fArray.remove(i); in purge() [all …]
|
/external/skia/legacy/src/core/ |
D | SkTypefaceCache.cpp | 17 if (fArray.count() >= TYPEFACE_CACHE_LIMIT) { in add() 21 Rec* rec = fArray.append(); in add() 28 const Rec* curr = fArray.begin(); in findByID() 29 const Rec* stop = fArray.end(); in findByID() 40 const Rec* curr = fArray.begin(); in findByProc() 41 const Rec* stop = fArray.end(); in findByProc() 52 int count = fArray.count(); in purge() 55 SkTypeface* face = fArray[i].fFace; in purge() 58 fArray.remove(i); in purge() 70 this->purge(fArray.count()); in purgeAll()
|
D | SkPictureFlat.h | 94 buffer.setRefCntArray(fArray, fCount); in setupBuffer() 99 SkRefCnt** fArray; variable 105 buffer.setTypefaceArray((SkTypeface**)fArray, fCount); in setupBuffer() 112 fArray = SkNEW_ARRAY(SkFlattenable::Factory, count); in SkFactoryPlayback() 116 SkDELETE_ARRAY(fArray); in ~SkFactoryPlayback() 119 SkFlattenable::Factory* base() const { return fArray; } in base() 122 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer() 127 SkFlattenable::Factory* fArray; variable
|
D | SkPictureFlat.cpp | 225 SkRefCntPlayback::SkRefCntPlayback() : fCount(0), fArray(NULL) {} in SkRefCntPlayback() 233 SkASSERT(fArray[i]); in reset() 234 fArray[i]->unref(); in reset() 236 SkDELETE_ARRAY(fArray); in reset() 240 fArray = SkNEW_ARRAY(SkRefCnt*, fCount); in reset() 241 rec->copyToArray(fArray); in reset() 243 fArray[i]->ref(); in reset() 247 fArray = NULL; in reset() 255 fArray = SkNEW_ARRAY(SkRefCnt*, count); in setCount() 256 sk_bzero(fArray, count * sizeof(SkRefCnt*)); in setCount() [all …]
|
/external/skia/src/utils/ |
D | SkJSON.cpp | 79 Array* fArray; member 94 delete fValue.fArray; in ~Slot() 137 return fSlot->fValue.fArray; in arrayValue() 236 this->addSlot(new Slot(name, kArray))->fValue.fArray = value; in addArray() 286 *value = slot->fValue.fArray; in findArray() 396 if (slot->fValue.fArray) { in dumpLevel() 398 slot->fValue.fArray->dumpLevel(level + 1); in dumpLevel() 437 Object* obj = fArray.fObjects[i]; in dumpLevel() 453 Array* array = fArray.fArrays[i]; in dumpLevel() 468 const char* str = fArray.fStrings[i]; in dumpLevel() [all …]
|
/external/skia/legacy/src/utils/ |
D | SkJSON.cpp | 79 Array* fArray; member 94 delete fValue.fArray; in ~Slot() 137 return fSlot->fValue.fArray; in arrayValue() 236 this->addSlot(new Slot(name, kArray))->fValue.fArray = value; in addArray() 286 *value = slot->fValue.fArray; in findArray() 396 if (slot->fValue.fArray) { in dumpLevel() 398 slot->fValue.fArray->dumpLevel(level + 1); in dumpLevel() 437 Object* obj = fArray.fObjects[i]; in dumpLevel() 453 Array* array = fArray.fArrays[i]; in dumpLevel() 468 const char* str = fArray.fStrings[i]; in dumpLevel() [all …]
|
/external/skia/legacy/include/utils/ |
D | SkJSON.h | 242 return fArray.fObjects; in objects() 246 return fArray.fArrays; in arrays() 250 return fArray.fStrings; in strings() 254 return fArray.fInts; in ints() 258 return fArray.fFloats; in floats() 262 return fArray.fBools; in bools() 276 } fArray; variable
|
/external/skia/include/utils/ |
D | SkJSON.h | 242 return fArray.fObjects; in objects() 246 return fArray.fArrays; in arrays() 250 return fArray.fStrings; in strings() 254 return fArray.fInts; in ints() 258 return fArray.fFloats; in floats() 262 return fArray.fBools; in bools() 276 } fArray; variable
|
/external/skia/legacy/src/effects/ |
D | SkColorMatrixFilter.cpp | 25 const int32_t* SK_RESTRICT array = state->fArray; in General() 37 const int32_t* SK_RESTRICT array = state->fArray; in General16() 48 const int32_t* SK_RESTRICT array = state->fArray; in AffineAdd() 60 const int32_t* SK_RESTRICT array = state->fArray; in AffineAdd16() 71 const int32_t* SK_RESTRICT array = state->fArray; in ScaleAdd() 84 const int32_t* SK_RESTRICT array = state->fArray; in ScaleAdd16() 96 const int32_t* SK_RESTRICT array = state->fArray; in Add() 108 const int32_t* SK_RESTRICT array = state->fArray; in Add16() 130 int32_t* array = fState.fArray; in setup() 331 int32_t* array = fState.fArray; in asColorMatrix()
|
/external/icu4c/tools/genrb/ |
D | reslist.c | 242 if (res->u.fArray.fCount == 0 && gFormatVersion > 1) { in array_write16() 247 for (current = res->u.fArray.fFirst; current != NULL; current = current->fNext) { in array_write16() 251 if (U_SUCCESS(*status) && res->u.fArray.fCount <= 0xffff && res16 >= 0 && gFormatVersion > 1) { in array_write16() 252 uint16_t *p16 = reserve16BitUnits(bundle, 1 + res->u.fArray.fCount, status); in array_write16() 255 *p16++ = (uint16_t)res->u.fArray.fCount; in array_write16() 256 for (current = res->u.fArray.fFirst; current != NULL; current = current->fNext) { in array_write16() 259 bundle->f16BitUnitsLength += 1 + res->u.fArray.fCount; in array_write16() 408 for (current = res->u.fArray.fFirst; current != NULL; current = current->fNext) { in array_preWrite() 412 *byteOffset += (1 + res->u.fArray.fCount) * 4; in array_preWrite() 523 for (i = 0, current = res->u.fArray.fFirst; current != NULL; ++i, current = current->fNext) { in array_write() [all …]
|