Home
last modified time | relevance | path

Searched refs:fArray (Results 1 – 25 of 35) sorted by relevance

12

/external/skia/include/core/
DSkTDArray.h19 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 …]
DSkTemplates.h74 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 …]
DSkTDict.h23 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/src/gpu/
DGrTDArray.h27 GrTDArray() : fArray(NULL), fAllocated(0), fCount(0) {} in GrTDArray()
30 fArray = (T*)GrMalloc(fAllocated * sizeof(T)); in GrTDArray()
31 memcpy(fArray, src.fArray, fCount * sizeof(T)); in GrTDArray()
34 if (fArray) { in ~GrTDArray()
35 GrFree(fArray); in ~GrTDArray()
44 return fArray[index]; in at()
48 return fArray[index]; in at()
57 GrFree(fArray);
58 fArray = (T*)GrMalloc(fAllocated * sizeof(T));
61 memcpy(fArray, src.fArray, fCount * sizeof(T));
[all …]
/external/skia/src/animator/
DSkTypedArray.cpp32 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 …]
DSkTDArray_Experimental.h60 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()
DSkMemberInfo.cpp377 …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 …]
DSkOperand2.h25 SkOpArray* fArray; member
46 SkOpArray* getArray() { SkASSERT(fType == SkOperand2::kArray); return fOperand.fArray; } in getArray()
DSkOperand.h23 SkTypedArray* fArray; member
36 SkTypedArray* getArray() { SkASSERT(fType == SkType_Array); return fOperand.fArray; } in getArray()
DSkScriptRuntime.cpp72 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()
DSkDrawMatrix.cpp220 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()
DSkAnimatorScript2.cpp61 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()
DSkScriptTokenizer.cpp432 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()
639 operand.fOperand.fArray = value->fOperand.fArray = new SkOpArray(fReturnType); in innerScript()
640 track(value->fOperand.fArray); in innerScript()
792 scriptValue.fType = scriptValue.fOperand.fArray->getType(); in handleArrayIndexer()
794 if ((unsigned) index >= (unsigned) scriptValue.fOperand.fArray->count()) { in handleArrayIndexer()
798 scriptValue.fOperand = scriptValue.fOperand.fArray->begin()[index]; in handleArrayIndexer()
[all …]
/external/skia/bench/
DScalarBench.cpp66 init9(fArray); in FloatComparisonBench()
71 always_do(fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f); in performTest()
72 always_do(fArray[2] != 0.0f || fArray[5] != 0.0f); in performTest()
75 float fArray[9]; member in FloatComparisonBench
83 init9(fArray); in ForcedIntComparisonBench()
88 always_do(SkScalarAs2sCompliment(fArray[6]) | in performTest()
89 SkScalarAs2sCompliment(fArray[7]) | in performTest()
90 (SkScalarAs2sCompliment(fArray[8]) - kPersp1Int)); in performTest()
91 always_do(SkScalarAs2sCompliment(fArray[2]) | in performTest()
92 SkScalarAs2sCompliment(fArray[5])); in performTest()
[all …]
DMatrixBench.cpp225 fArray[0] = (float) fRnd.nextS(); in GetTypeMatrixBench()
226 fArray[1] = (float) fRnd.nextS(); in GetTypeMatrixBench()
227 fArray[2] = (float) fRnd.nextS(); in GetTypeMatrixBench()
228 fArray[3] = (float) fRnd.nextS(); in GetTypeMatrixBench()
229 fArray[4] = (float) fRnd.nextS(); in GetTypeMatrixBench()
230 fArray[5] = (float) fRnd.nextS(); in GetTypeMatrixBench()
231 fArray[6] = (float) fRnd.nextS(); in GetTypeMatrixBench()
232 fArray[7] = (float) fRnd.nextS(); in GetTypeMatrixBench()
233 fArray[8] = (float) fRnd.nextS(); in GetTypeMatrixBench()
240 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest()
[all …]
/external/skia/src/core/
DSkTypefaceCache.cpp17 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()
DSkPictureFlat.h94 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
DSkPictureFlat.cpp225 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/
DSkJSON.cpp79 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/include/utils/
DSkJSON.h242 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/src/effects/
DSkColorMatrixFilter.cpp25 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/
Dreslist.c240 if (res->u.fArray.fCount == 0 && gFormatVersion > 1) { in array_write16()
245 for (current = res->u.fArray.fFirst; current != NULL; current = current->fNext) { in array_write16()
249 if (U_SUCCESS(*status) && res->u.fArray.fCount <= 0xffff && res16 >= 0 && gFormatVersion > 1) { in array_write16()
250 uint16_t *p16 = reserve16BitUnits(bundle, 1 + res->u.fArray.fCount, status); in array_write16()
253 *p16++ = (uint16_t)res->u.fArray.fCount; in array_write16()
254 for (current = res->u.fArray.fFirst; current != NULL; current = current->fNext) { in array_write16()
257 bundle->f16BitUnitsLength += 1 + res->u.fArray.fCount; in array_write16()
406 for (current = res->u.fArray.fFirst; current != NULL; current = current->fNext) { in array_preWrite()
410 *byteOffset += (1 + res->u.fArray.fCount) * 4; in array_preWrite()
521 for (i = 0, current = res->u.fArray.fFirst; current != NULL; ++i, current = current->fNext) { in array_write()
[all …]
/external/icu4c/i18n/
Dfmtable.cpp196 fValue.fArrayAndCount.fArray = createArrayCopy(arrayToCopy, count); in Formattable()
229 fValue.fArrayAndCount.fArray = createArrayCopy(source.fValue.fArrayAndCount.fArray, in operator =()
304 if (fValue.fArrayAndCount.fArray[i] != that.fValue.fArrayAndCount.fArray[i]) { in operator ==()
340 delete[] fValue.fArrayAndCount.fArray; in dispose()
579 fValue.fArrayAndCount.fArray = createArrayCopy(array, count); in setArray()
602 fValue.fArrayAndCount.fArray = array; in adoptArray()
670 return fValue.fArrayAndCount.fArray; in getArray()
/external/icu4c/common/
Dunistr.cpp122 { umtx_atomic_inc((int32_t *)fUnion.fFields.fArray - 1);} in addRef()
126 { return umtx_atomic_dec((int32_t *)fUnion.fFields.fArray - 1);} in removeRef()
134 int32_t count = *((int32_t *)fUnion.fFields.fArray - 1); in refCount()
142 uprv_free((int32_t *)fUnion.fFields.fArray - 1); in releaseArray()
384 fUnion.fFields.fArray = (UChar *)array; in allocate()
389 fUnion.fFields.fArray = 0; in allocate()
500 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom()
508 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom()
526 fUnion.fFields.fArray = 0; in copyFrom()
1074 fUnion.fFields.fArray = 0; in setToBogus()
[all …]
/external/icu4c/i18n/unicode/
Dfmtable.h432 { count=fValue.fArrayAndCount.fCount; return fValue.fArrayAndCount.fArray; } in getArray()
453 Formattable& operator[](int32_t index) { return fValue.fArrayAndCount.fArray[index]; }
634 Formattable* fArray; member

12