/external/skia/src/core/ |
D | SkTDPQueue.h | 32 int count() const { return fArray.count(); } in count() 35 const T& peek() const { return fArray[0]; } in peek() 36 T& peek() { return fArray[0]; } in peek() 41 SkDEBUGCODE(if (SkToBool(INDEX)) { *INDEX(fArray[0]) = -1; }) in pop() 42 if (1 == fArray.count()) { in pop() 43 fArray.pop(); in pop() 47 fArray[0] = fArray[fArray.count() - 1]; in pop() 49 fArray.pop(); in pop() 58 int index = fArray.count(); in insert() 59 *fArray.append() = entry; in insert() [all …]
|
D | SkTDynamicHash.h | 25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(nullptr) { in SkTDynamicHash() 30 sk_free(fArray); in ~SkTDynamicHash() 54 T* current() const { return fHash->fArray[fCurrentIndex]; } in current() 81 const T* current() const { return fHash->fArray[fCurrentIndex]; } in current() 94 T* candidate = fArray[index]; in find() 123 if (fArray) { in rewind() 124 sk_bzero(fArray, sizeof(T*)* fCapacity); in rewind() 134 sk_free(fArray); in reset() 135 fArray = nullptr; in reset() 148 const T* candidate = fArray[index]; in countCollisions() [all …]
|
D | SkPictureFlat.cpp | 21 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(nullptr) {} in SkTypefacePlayback() 29 SkASSERT(fArray[i]); in reset() 30 fArray[i]->unref(); in reset() 32 delete[] fArray; in reset() 36 fArray = new SkRefCnt* [fCount]; in reset() 37 rec->copyToArray(fArray); in reset() 39 fArray[i]->ref(); in reset() 43 fArray = nullptr; in reset() 51 fArray = new SkRefCnt* [count]; in setCount() 52 sk_bzero(fArray, count * sizeof(SkRefCnt*)); in setCount() [all …]
|
D | SkTypefaceCache.cpp | 20 const Rec* curr = fArray.begin(); in ~SkTypefaceCache() 21 const Rec* stop = fArray.end(); in ~SkTypefaceCache() 29 if (fArray.count() >= TYPEFACE_CACHE_LIMIT) { in add() 33 Rec* rec = fArray.append(); in add() 39 const Rec* curr = fArray.begin(); in findByProcAndRef() 40 const Rec* stop = fArray.end(); in findByProcAndRef() 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 | 138 buffer.setTypefaceArray((SkTypeface**)fArray, fCount); in setupBuffer() 143 SkRefCnt** fArray; variable 148 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } in SkFactoryPlayback() 150 ~SkFactoryPlayback() { delete[] fArray; } in ~SkFactoryPlayback() 152 SkFlattenable::Factory* base() const { return fArray; } in base() 155 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer() 160 SkFlattenable::Factory* fArray; variable
|
D | SkRecorder.h | 25 int count() const { return fArray.count(); } in count() 26 SkDrawable* const* begin() const { return fArray.begin(); } in begin() 34 SkTDArray<SkDrawable*> fArray;
|
/external/skia/include/private/ |
D | SkTDArray.h | 19 fArray = NULL; in SkTDArray() 25 fArray = NULL; in SkTDArray() 27 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray() 28 memcpy(fArray, src, sizeof(T) * count); in SkTDArray() 34 fArray = NULL; in SkTDArray() 35 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray() 39 sk_free(fArray); in ~SkTDArray() 45 SkTDArray<T> tmp(src.fArray, src.fCount); 48 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * src.fCount); 58 !memcmp(a.fArray, b.fArray, a.fCount * sizeof(T))); [all …]
|
D | SkTemplates.h | 118 fArray = NULL; in SkAutoTArray() 125 fArray = NULL; in SkAutoTArray() 127 fArray = new T[count]; in SkAutoTArray() 135 delete[] fArray; in reset() 137 fArray = NULL; in reset() 139 fArray = new T[count]; in reset() 144 ~SkAutoTArray() { delete[] fArray; } in ~SkAutoTArray() 148 T* get() const { return fArray; } in get() 154 return fArray[index]; 158 SkTSwap(fArray, other.fArray); in swap() [all …]
|
D | SkTDict.h | 20 fArray.reset(); in reset() 24 int count() const { return fArray.count(); } in count() 36 fArray[index].fValue = value; in set() 39 Pair* pair = fArray.insert(~index); in set() 66 *value = fArray[index].fValue; in find() 74 const Pair* end = fArray.end(); in findKey() 75 for (const Pair* pair = fArray.begin(); pair < end; pair++) { in findKey() 104 fIter = dict.fArray.begin(); in Iter() 105 fStop = dict.fArray.end(); in Iter() 125 SkTDArray<Pair> fArray; [all …]
|
/external/skia/src/animator/ |
D | SkTypedArray.cpp | 32 fArray = nullptr; in SkDS32Array() 41 fArray = nullptr; in SkDS32Array() 45 SkDS32Array tmp(src.fArray, src.fCount); in SkDS32Array() 54 fArray = nullptr; 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 = nullptr; 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 : nullptr); } 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, nullptr); 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 …]
|
D | SkOperand2.h | 25 SkOpArray* fArray; member 46 SkOpArray* getArray() { SkASSERT(fType == SkOperand2::kArray); return fOperand.fArray; } in getArray()
|
D | SkOperand.h | 23 SkTypedArray* fArray; member 36 SkTypedArray* getArray() { SkASSERT(fType == SkType_Array); return fOperand.fArray; } in getArray()
|
D | SkScriptRuntime.cpp | 72 operand[0].fArray = new SkOpArray(SkOperand2::kNoType /*fReturnType*/); in executeTokens() 76 if (index >= operand[0].fArray->count()) { in executeTokens() 80 operand[0] = operand[0].fArray->begin()[index]; in executeTokens() 83 *operand[0].fArray->append() = operand[1]; in executeTokens() 94 if (callBackFunction->invoke(ref, operand[0].fArray, /* params */ in executeTokens()
|
D | SkDrawMatrix.cpp | 220 SkASSERT(scriptValue.fOperand.fArray->getType() == SkType_Float); in setProperty() 221 SkASSERT(scriptValue.fOperand.fArray->count() == 2); in setProperty() 223 fMatrix.setTranslateX((*scriptValue.fOperand.fArray)[0].fScalar); in setProperty() 224 fMatrix.setTranslateY((*scriptValue.fOperand.fArray)[1].fScalar); in setProperty()
|
D | SkAnimatorScript2.cpp | 61 SkDisplayArray* boxedValue = new SkDisplayArray(*operand->fArray); in convert() 312 … operand->fArray = new SkOpArray(SkAnimatorScript2::ToOpType(boxedValue->values.getType())); in convert() 314 operand->fArray->setCount(count); in convert() 315 … memcpy(operand->fArray->begin(), boxedValue->values.begin(), count * sizeof(SkOperand2)); in convert() 316 fEngine->track(operand->fArray); in convert() 434 SkOpArray* array = value->fArray = new SkOpArray(ToOpType(original)); in evalMemberCommon()
|
D | SkScriptTokenizer.cpp | 432 SkOpArray* child = (*array)[index].fArray; in forget() 497 if (value->fOperand.fArray->count() == 0) in innerScript() 498 value->fOperand.fArray->setType(type = tokenValue.fType); in innerScript() 500 type = value->fOperand.fArray->getType(); in innerScript() 504 *value->fOperand.fArray->append() = tokenValue.fOperand; in innerScript() 637 operand.fOperand.fArray = value->fOperand.fArray = new SkOpArray(fReturnType); in innerScript() 638 track(value->fOperand.fArray); in innerScript() 790 scriptValue.fType = scriptValue.fOperand.fArray->getType(); in handleArrayIndexer() 792 if ((unsigned) index >= (unsigned) scriptValue.fOperand.fArray->count()) { in handleArrayIndexer() 796 scriptValue.fOperand = scriptValue.fOperand.fArray->begin()[index]; in handleArrayIndexer() [all …]
|
/external/skia/bench/ |
D | ScalarBench.cpp | 57 init9(fArray); in FloatComparisonBench() 64 junk ^= (fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f); in performTest() 65 junk ^= (fArray[2] != 0.0f || fArray[5] != 0.0f); in performTest() 68 float fArray[9]; member in FloatComparisonBench 76 init9(fArray); in ForcedIntComparisonBench() 83 junk ^= (SkScalarAs2sCompliment(fArray[6]) | in performTest() 84 SkScalarAs2sCompliment(fArray[7]) | in performTest() 85 (SkScalarAs2sCompliment(fArray[8]) - kPersp1Int)); in performTest() 86 junk ^= (SkScalarAs2sCompliment(fArray[2]) | in performTest() 87 SkScalarAs2sCompliment(fArray[5])); in performTest() [all …]
|
D | MatrixBench.cpp | 101 fArray[0] = (float) fRnd.nextS(); in GetTypeMatrixBench() 102 fArray[1] = (float) fRnd.nextS(); in GetTypeMatrixBench() 103 fArray[2] = (float) fRnd.nextS(); in GetTypeMatrixBench() 104 fArray[3] = (float) fRnd.nextS(); in GetTypeMatrixBench() 105 fArray[4] = (float) fRnd.nextS(); in GetTypeMatrixBench() 106 fArray[5] = (float) fRnd.nextS(); in GetTypeMatrixBench() 107 fArray[6] = (float) fRnd.nextS(); in GetTypeMatrixBench() 108 fArray[7] = (float) fRnd.nextS(); in GetTypeMatrixBench() 109 fArray[8] = (float) fRnd.nextS(); in GetTypeMatrixBench() 116 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest() [all …]
|
/external/skia/samplecode/ |
D | SampleHT.cpp | 129 Rec fArray[N]; member in HTView 139 fArray[i].fDrawable = new HTDrawable(rand); in HTView() 140 canvas->drawDrawable(fArray[i].fDrawable); in HTView() 141 fArray[i].fDrawable->unref(); in HTView() 162 fArray[i].fDrawable->setTime(fTime); in onAnimate() 170 if (fArray[i].fDrawable->hitTest(x, y)) { in onFindClickHandler() 171 fArray[i].fDrawable->spawnAnimation(fTime); in onFindClickHandler()
|
/external/skia/src/effects/gradients/ |
D | SkLinearGradient.h | 15 float fArray[4]; member 18 return Sk4f::Load(fArray); in Sk4f() 22 src.store(fArray);
|
/external/icu/icu4c/source/common/ |
D | unistr.cpp | 121 umtx_atomic_inc((u_atomic_int32_t *)fUnion.fFields.fArray - 1); in addRef() 126 return umtx_atomic_dec((u_atomic_int32_t *)fUnion.fFields.fArray - 1); in removeRef() 131 return umtx_loadAcquire(*((u_atomic_int32_t *)fUnion.fFields.fArray - 1)); in refCount() 137 uprv_free((int32_t *)fUnion.fFields.fArray - 1); in releaseArray() 361 fUnion.fFields.fArray = (UChar *)array; in allocate() 366 fUnion.fFields.fArray = 0; in allocate() 505 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom() 515 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom() 538 fUnion.fFields.fArray = 0; in copyFrom() 567 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFieldsFrom() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | fmtable.cpp | 199 fValue.fArrayAndCount.fArray = createArrayCopy(arrayToCopy, count); in Formattable() 232 fValue.fArrayAndCount.fArray = createArrayCopy(source.fValue.fArrayAndCount.fArray, in operator =() 307 if (fValue.fArrayAndCount.fArray[i] != that.fValue.fArrayAndCount.fArray[i]) { in operator ==() 343 delete[] fValue.fArrayAndCount.fArray; in dispose() 589 fValue.fArrayAndCount.fArray = createArrayCopy(array, count); in setArray() 612 fValue.fArrayAndCount.fArray = array; in adoptArray() 680 return fValue.fArrayAndCount.fArray; in getArray()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | fmtable.h | 446 { count=fValue.fArrayAndCount.fCount; return fValue.fArrayAndCount.fArray; } in getArray() 467 Formattable& operator[](int32_t index) { return fValue.fArrayAndCount.fArray[index]; } 700 Formattable* fArray; member
|