Home
last modified time | relevance | path

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

12

/external/skia/include/core/
DSkTDArray.h26 fArray = NULL; in SkTDArray()
35 fArray = NULL; in SkTDArray()
40 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray()
42 fData = (ArrayT*)fArray; in SkTDArray()
44 memcpy(fArray, src, sizeof(T) * count); in SkTDArray()
50 fArray = NULL; in SkTDArray()
54 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray()
58 sk_free(fArray); in ~SkTDArray()
64 SkTDArray<T> tmp(src.fArray, src.fCount);
67 memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
[all …]
DSkTemplates.h81 SkAutoTDeleteArray(T array[]) : fArray(array) {} in SkAutoTDeleteArray()
82 ~SkAutoTDeleteArray() { delete[] fArray; } in ~SkAutoTDeleteArray()
84 T* get() const { return fArray; } in get()
85 void free() { delete[] fArray; fArray = NULL; } in free()
86 T* detach() { T* array = fArray; fArray = NULL; return array; } in detach()
89 T* fArray;
99 fArray = NULL; in SkAutoTArray()
101 fArray = new T[count]; in SkAutoTArray()
107 delete[] fArray; in ~SkAutoTArray()
112 T* get() const { return fArray; } in get()
[all …]
DSkTDict.h30 fArray.reset(); in reset()
34 int count() const { return fArray.count(); } in count()
49 fArray[index].fValue = value; in set()
54 Pair* pair = fArray.insert(~index); in set()
86 *value = fArray[index].fValue; in find()
94 Pair* end = fArray.end(); in findKey()
95 for (Pair* pair = fArray.begin(); pair < end; pair++) { in findKey()
125 fIter = dict.fArray.begin(); in Iter()
126 fStop = dict.fArray.end(); in Iter()
146 SkTDArray<Pair> fArray;
[all …]
/external/skia/gpu/include/
DGrTDArray.h33 GrTDArray() : fArray(NULL), fAllocated(0), fCount(0) {} in GrTDArray()
36 fArray = (T*)GrMalloc(fAllocated * sizeof(T)); in GrTDArray()
37 memcpy(fArray, src.fArray, fCount * sizeof(T)); in GrTDArray()
40 if (fArray) { in ~GrTDArray()
41 GrFree(fArray); in ~GrTDArray()
50 return fArray[index]; in at()
54 return fArray[index]; in at()
63 GrFree(fArray);
64 fArray = (T*)GrMalloc(fAllocated * sizeof(T));
67 memcpy(fArray, src.fArray, fCount * sizeof(T));
[all …]
/external/skia/src/animator/
DSkTypedArray.cpp40 fArray = NULL; in SkDS32Array()
49 fArray = NULL; in SkDS32Array()
53 SkDS32Array tmp(src.fArray, src.fCount); in SkDS32Array()
62 fArray = NULL; in SkDS32Array()
68 fArray = (int32_t*)sk_malloc_throw(count * sizeof(int32_t)); in SkDS32Array()
70 fData = (int32_t (*)[kDebugArraySize]) fArray; in SkDS32Array()
72 memcpy(fArray, src, sizeof(int32_t) * count); in SkDS32Array()
83 SkDS32Array tmp(src.fArray, src.fCount); in operator =()
88 memcpy(fArray, src.fArray, sizeof(int32_t) * src.fCount); in operator =()
98 (a.fCount == 0 || !memcmp(a.fArray, b.fArray, a.fCount * sizeof(int32_t))); in operator ==()
[all …]
DSkTDArray_Experimental.h68 memmove(fArray + index, fArray + index + count, sizeof(int32_t) * (fCount - index));
73 if (fArray) in reset()
75 sk_free(fArray); in reset()
76 fArray = NULL; in reset()
102 int32_t* fArray; variable
108 #define SYNC() fTData = (T (*)[kDebugArraySize]) fArray
117 ~SkTDS32Array() { sk_free(fArray); } in ~SkTDS32Array()
118 …tor[](int index) const { SYNC(); SkASSERT((unsigned)index < fCount); return ((T*) fArray)[index]; }
126 T* begin() const { SYNC(); return (T*) fArray; } in begin()
127 T* end() const { return (T*) (fArray ? fArray + fCount : NULL); } in end()
DSkMemberInfo.cpp384 …memcpy(&storage->fScalar, scriptValue.fOperand.fArray->begin(), scriptValue.fOperand.fArray->count… in writeValue()
396 displayable->executeFunction(displayable, this, scriptValue.fOperand.fArray, NULL); in writeValue()
398 int count = scriptValue.fOperand.fArray->count(); in writeValue()
406 …memcpy(&(*arrayStorage)[storageOffset], scriptValue.fOperand.fArray->begin(), count * sizeof(SkOpe… in writeValue()
420 type = scriptValue.fOperand.fArray->getType(); in writeValue()
423 SkASSERT(type == scriptValue.fOperand.fArray->getType()); in writeValue()
424 int count = scriptValue.fOperand.fArray->count(); in writeValue()
427 …memcpy(destArray->begin() + storageOffset, scriptValue.fOperand.fArray->begin(), sizeof(SkOperand)… in writeValue()
433 SkTypedArray* array = scriptValue.fOperand.fArray; in writeValue()
456 int count = scriptValue.fOperand.fArray->count(); in writeValue()
[all …]
DSkOperand2.h18 SkOpArray* fArray; member
39 SkOpArray* getArray() { SkASSERT(fType == SkOperand2::kArray); return fOperand.fArray; } in getArray()
DSkOperand.h31 SkTypedArray* fArray; member
44 SkTypedArray* getArray() { SkASSERT(fType == SkType_Array); return fOperand.fArray; } in getArray()
DSkScriptRuntime.cpp64 operand[0].fArray = new SkOpArray(SkOperand2::kNoType /*fReturnType*/); in executeTokens()
68 if (index >= operand[0].fArray->count()) { in executeTokens()
72 operand[0] = operand[0].fArray->begin()[index]; in executeTokens()
75 *operand[0].fArray->append() = operand[1]; in executeTokens()
86 if (callBackFunction->invoke(ref, operand[0].fArray, /* params */ in executeTokens()
DSkDrawMatrix.cpp233 SkASSERT(scriptValue.fOperand.fArray->getType() == SkType_Float); in setProperty()
234 SkASSERT(scriptValue.fOperand.fArray->count() == 2); in setProperty()
236 fMatrix.setTranslateX((*scriptValue.fOperand.fArray)[0].fScalar); in setProperty()
237 fMatrix.setTranslateY((*scriptValue.fOperand.fArray)[1].fScalar); in setProperty()
DSkAnimatorScript2.cpp54 SkDisplayArray* boxedValue = new SkDisplayArray(*operand->fArray); in convert()
305 operand->fArray = new SkOpArray(SkAnimatorScript2::ToOpType(boxedValue->values.getType())); in convert()
307 operand->fArray->setCount(count); in convert()
308 memcpy(operand->fArray->begin(), boxedValue->values.begin(), count * sizeof(SkOperand2)); in convert()
309 fEngine->track(operand->fArray); in convert()
427 SkOpArray* array = value->fArray = new SkOpArray(ToOpType(original)); in evalMemberCommon()
DSkScriptTokenizer.cpp424 SkOpArray* child = (*array)[index].fArray; in forget()
489 if (value->fOperand.fArray->count() == 0) in innerScript()
490 value->fOperand.fArray->setType(type = tokenValue.fType); in innerScript()
492 type = value->fOperand.fArray->getType(); in innerScript()
496 *value->fOperand.fArray->append() = tokenValue.fOperand; in innerScript()
630 operand.fOperand.fArray = value->fOperand.fArray = new SkOpArray(fReturnType); in innerScript()
631 track(value->fOperand.fArray); in innerScript()
782 scriptValue.fType = scriptValue.fOperand.fArray->getType(); in handleArrayIndexer()
784 if ((unsigned) index >= (unsigned) scriptValue.fOperand.fArray->count()) { in handleArrayIndexer()
788 scriptValue.fOperand = scriptValue.fOperand.fArray->begin()[index]; in handleArrayIndexer()
[all …]
/external/skia/bench/
DScalarBench.cpp59 init9(fArray); in FloatComparisonBench()
64 always_do(fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f); in performTest()
65 always_do(fArray[2] != 0.0f || fArray[5] != 0.0f); in performTest()
68 float fArray[9]; member in FloatComparisonBench
76 init9(fArray); in ForcedIntComparisonBench()
81 always_do(SkScalarAs2sCompliment(fArray[6]) | in performTest()
82 SkScalarAs2sCompliment(fArray[7]) | in performTest()
83 (SkScalarAs2sCompliment(fArray[8]) - kPersp1Int)); in performTest()
84 always_do(SkScalarAs2sCompliment(fArray[2]) | in performTest()
85 SkScalarAs2sCompliment(fArray[5])); in performTest()
[all …]
/external/skia/src/core/
DSkTypefaceCache.cpp24 if (fArray.count() >= TYPEFACE_CACHE_LIMIT) { in add()
28 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 findByProc()
48 const Rec* stop = fArray.end(); in findByProc()
59 int count = fArray.count(); in purge()
62 SkTypeface* face = fArray[i].fFace; in purge()
65 fArray.remove(i); in purge()
DSkPictureFlat.h66 buffer.setRefCntArray(fArray, fCount); in setupBuffer()
71 SkRefCnt** fArray; variable
77 buffer.setTypefaceArray((SkTypeface**)fArray, fCount); in setupBuffer()
84 fArray = SkNEW_ARRAY(SkFlattenable::Factory, count); in SkFactoryPlayback()
88 SkDELETE_ARRAY(fArray); in ~SkFactoryPlayback()
91 SkFlattenable::Factory* base() const { return fArray; } in base()
94 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer()
99 SkFlattenable::Factory* fArray; variable
DSkPictureFlat.cpp218 SkRefCntPlayback::SkRefCntPlayback() : fCount(0), fArray(NULL) {} in SkRefCntPlayback()
226 SkASSERT(fArray[i]); in reset()
227 fArray[i]->unref(); in reset()
229 SkDELETE_ARRAY(fArray); in reset()
233 fArray = SkNEW_ARRAY(SkRefCnt*, fCount); in reset()
234 rec->copyToArray(fArray); in reset()
236 fArray[i]->ref(); in reset()
240 fArray = NULL; in reset()
248 fArray = SkNEW_ARRAY(SkRefCnt*, count); in setCount()
249 sk_bzero(fArray, count * sizeof(SkRefCnt*)); in setCount()
[all …]
/external/skia/src/effects/
DSkColorMatrixFilter.cpp18 const int32_t* SK_RESTRICT array = state->fArray; in General()
30 const int32_t* SK_RESTRICT array = state->fArray; in General16()
41 const int32_t* SK_RESTRICT array = state->fArray; in AffineAdd()
53 const int32_t* SK_RESTRICT array = state->fArray; in AffineAdd16()
64 const int32_t* SK_RESTRICT array = state->fArray; in ScaleAdd()
77 const int32_t* SK_RESTRICT array = state->fArray; in ScaleAdd16()
89 const int32_t* SK_RESTRICT array = state->fArray; in Add()
101 const int32_t* SK_RESTRICT array = state->fArray; in Add16()
121 int32_t* SK_RESTRICT array = fState.fArray; in setup()
/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 …]
Dwrtjava.c337 if (res->u.fArray.fCount > 0) { in array_write_java()
339 current = res->u.fArray.fFirst; in array_write_java()
349 current = res->u.fArray.fFirst; in array_write_java()
405 len=itostr(buf,res->u.fIntVector.fArray[i],10,0); in intvector_write_java()
417 len=itostr(buf,res->u.fIntVector.fArray[i],10,0); in intvector_write_java()
/external/icu4c/i18n/
Dfmtable.cpp198 fValue.fArrayAndCount.fArray = createArrayCopy(arrayToCopy, count); in Formattable()
231 fValue.fArrayAndCount.fArray = createArrayCopy(source.fValue.fArrayAndCount.fArray, in operator =()
306 if (fValue.fArrayAndCount.fArray[i] != that.fValue.fArrayAndCount.fArray[i]) { in operator ==()
342 delete[] fValue.fArrayAndCount.fArray; in dispose()
568 fValue.fArrayAndCount.fArray = createArrayCopy(array, count); in setArray()
591 fValue.fArrayAndCount.fArray = array; in adoptArray()
659 return fValue.fArrayAndCount.fArray; in getArray()
Dfmtable.cpp.noOrig198 fValue.fArrayAndCount.fArray = createArrayCopy(arrayToCopy, count);
231 fValue.fArrayAndCount.fArray = createArrayCopy(source.fValue.fArrayAndCount.fArray,
306 if (fValue.fArrayAndCount.fArray[i] != that.fValue.fArrayAndCount.fArray[i]) {
342 delete[] fValue.fArrayAndCount.fArray;
568 fValue.fArrayAndCount.fArray = createArrayCopy(array, count);
591 fValue.fArrayAndCount.fArray = array;
659 return fValue.fArrayAndCount.fArray;
/external/icu4c/common/
Dunistr.cpp121 { umtx_atomic_inc((int32_t *)fUnion.fFields.fArray - 1);} in addRef()
125 { return umtx_atomic_dec((int32_t *)fUnion.fFields.fArray - 1);} in removeRef()
133 int32_t count = *((int32_t *)fUnion.fFields.fArray - 1); in refCount()
141 uprv_free((int32_t *)fUnion.fFields.fArray - 1); in releaseArray()
383 fUnion.fFields.fArray = (UChar *)array; in allocate()
388 fUnion.fFields.fArray = 0; in allocate()
499 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom()
507 fUnion.fFields.fArray = src.fUnion.fFields.fArray; in copyFrom()
525 fUnion.fFields.fArray = 0; in copyFrom()
1073 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
/external/icu4c/tools/gennorm2/
Dn2builder.cpp522 UChar32 charAt(int32_t i) const { return fArray[i]>>8; } in charAt()
523 uint8_t ccAt(int32_t i) const { return (uint8_t)fArray[i]; } in ccAt()
530 fArray[fLength++]=(c<<8)|cc; in append()
541 fArray[j]=fArray[j-1]; in append()
543 fArray[i]=(c<<8)|cc; in append()
554 fArray[fLastStarterIndex]=composite<<8; in setComposite()
558 fArray[combMarkIndex]=fArray[combMarkIndex+1]; in setComposite()
563 int32_t fArray[Normalizer2Impl::MAPPING_LENGTH_MASK]; member in BuilderReorderingBuffer

12