Searched refs:fArray (Results 1 - 25 of 27) sorted by relevance

12

/external/skia/src/pipe/
H A DSkRefSet.h16 ~SkRefSet() { fArray.unrefAll(); }
19 SkASSERT((unsigned)index < (unsigned)fArray.count());
20 return fArray[index];
24 if ((unsigned)index < (unsigned)fArray.count()) {
25 SkRefCnt_SafeAssign(fArray[index], value);
28 if (fArray.count() == index && value) {
29 *fArray.append() = SkRef(value);
32 SkDebugf("SkRefSet: index [%d] out of range %d\n", index, fArray.count());
37 SkTDArray<T*> fArray; member in class:SkRefSet
H A DSkPipeCanvas.h23 void reset() { fArray.reset(); }
27 const Rec* stop = fArray.end();
28 for (const Rec* curr = fArray.begin(); curr < stop; ++curr) {
38 Rec* rec = fArray.append();
50 SkTDArray<Rec> fArray; member in class:SkTIndexSet
/external/skia/src/core/
H A DSkTDPQueue.h32 int count() const { return fArray.count(); }
35 const T& peek() const { return fArray[0]; }
36 T& peek() { return fArray[0]; }
41 SkDEBUGCODE(if (SkToBool(INDEX)) { *INDEX(fArray[0]) = -1; })
42 if (1 == fArray.count()) {
43 fArray.pop();
47 fArray[0] = fArray[fArray.count() - 1];
49 fArray
[all...]
H A DSkPictureFlat.cpp19 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(nullptr) {}
27 SkASSERT(fArray[i]);
28 fArray[i]->unref();
30 delete[] fArray;
34 fArray = new SkRefCnt* [fCount];
35 rec->copyToArray(fArray);
37 fArray[i]->ref();
41 fArray = nullptr;
49 fArray = new SkRefCnt* [count];
50 sk_bzero(fArray, coun
[all...]
H A DSkTDynamicHash.h25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(nullptr) {
30 sk_free(fArray);
54 T* current() const { return fHash->fArray[fCurrentIndex]; }
81 const T* current() const { return fHash->fArray[fCurrentIndex]; }
94 T* candidate = fArray[index];
123 if (fArray) {
124 sk_bzero(fArray, sizeof(T*)* fCapacity);
134 sk_free(fArray);
135 fArray = nullptr;
148 const T* candidate = fArray[inde
286 T** fArray; member in class:SkTDynamicHash
[all...]
H A DSkPictureFlat.h168 buffer.setTypefaceArray((SkTypeface**)fArray, fCount);
173 SkRefCnt** fArray; member in class:SkTypefacePlayback
178 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; }
180 ~SkFactoryPlayback() { delete[] fArray; }
182 SkFlattenable::Factory* base() const { return fArray; }
185 buffer.setFactoryPlayback(fArray, fCount);
190 SkFlattenable::Factory* fArray; member in class:SkFactoryPlayback
H A DSkRecorder.h25 int count() const { return fArray.count(); }
26 SkDrawable* const* begin() const { return fArray.begin(); }
34 SkTDArray<SkDrawable*> fArray; member in class:SkDrawableList
H A DSkRecorder.cpp17 fArray.unrefAll();
21 const int count = fArray.count();
27 pics[i] = fArray[i]->newPictureSnapshot();
33 *fArray.append() = SkRef(drawable);
/external/skia/include/private/
H A DSkTDArray.h18 SkTDArray() : fArray(nullptr), fReserve(0), fCount(0) {}
23 fArray = NULL;
25 fArray = (T*)sk_malloc_throw(count * sizeof(T));
26 memcpy(fArray, src, sizeof(T) * count);
30 SkTDArray(const SkTDArray<T>& src) : fArray(nullptr), fReserve(0), fCount(0) {
31 SkTDArray<T> tmp(src.fArray, src.fCount);
34 SkTDArray(SkTDArray<T>&& src) : fArray(nullptr), fReserve(0), fCount(0) {
38 sk_free(fArray);
44 SkTDArray<T> tmp(src.fArray, src.fCount);
47 sk_careful_memcpy(fArray, sr
360 T* fArray; member in class:SkTDArray
[all...]
H A DSkTemplates.h90 fArray = NULL;
97 fArray = NULL;
99 fArray = new T[count];
107 delete[] fArray;
109 fArray = NULL;
111 fArray = new T[count];
116 ~SkAutoTArray() { delete[] fArray; }
120 T* get() const { return fArray; }
126 return fArray[index];
130 SkTSwap(fArray, othe
135 T* fArray; member in class:SkAutoTArray
[all...]
/external/skia/bench/
H A DScalarBench.cpp56 init9(fArray);
63 junk ^= (fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f);
64 junk ^= (fArray[2] != 0.0f || fArray[5] != 0.0f);
67 float fArray[9]; member in class:FloatComparisonBench
75 init9(fArray);
82 junk ^= (SkScalarAs2sCompliment(fArray[6]) |
83 SkScalarAs2sCompliment(fArray[
90 SkScalar fArray[9]; member in class:ForcedIntComparisonBench
120 SkScalar fArray[ARRAY_N]; member in class:IsFiniteScalarBench
[all...]
H A DMatrixBench.cpp100 fArray[0] = (float) fRnd.nextS();
101 fArray[1] = (float) fRnd.nextS();
102 fArray[2] = (float) fRnd.nextS();
103 fArray[3] = (float) fRnd.nextS();
104 fArray[4] = (float) fRnd.nextS();
105 fArray[5] = (float) fRnd.nextS();
106 fArray[6] = (float) fRnd.nextS();
107 fArray[7] = (float) fRnd.nextS();
108 fArray[8] = (float) fRnd.nextS();
115 fMatrix.setAll(fArray[
138 float fArray[9]; member in class:GetTypeMatrixBench
[all...]
/external/skia/src/effects/gradients/
H A DSkLinearGradient.h15 float fArray[4]; member in struct:Sk4fStorage
18 return Sk4f::Load(fArray);
22 src.store(fArray);
/external/skia/samplecode/
H A DSampleHT.cpp127 Rec fArray[N]; member in class:HTView
137 fArray[i].fDrawable = new HTDrawable(rand);
138 canvas->drawDrawable(fArray[i].fDrawable);
139 fArray[i].fDrawable->unref();
160 fArray[i].fDrawable->setTime(fTime);
168 if (fArray[i].fDrawable->hitTest(x, y)) {
169 fArray[i].fDrawable->spawnAnimation(fTime);
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
H A DBindingsVersioningTest.java39 struct.fArray = new byte[] {10, 9, 8};
97 v5.fArray = new byte[] {10, 9, 8};
102 expected.fArray = new byte[] {10, 9, 8};
116 v7.fArray = new byte[] {10, 9, 8};
125 expected.fArray = new byte[] {10, 9, 8};
181 expected.fArray = new byte[] {10, 9, 8};
194 expected.fArray = new byte[] {10, 9, 8};
/external/icu/icu4c/source/i18n/
H A Dfmtable.cpp201 fValue.fArrayAndCount.fArray = createArrayCopy(arrayToCopy, count);
234 fValue.fArrayAndCount.fArray = createArrayCopy(source.fValue.fArrayAndCount.fArray,
309 if (fValue.fArrayAndCount.fArray[i] != that.fValue.fArrayAndCount.fArray[i]) {
345 delete[] fValue.fArrayAndCount.fArray;
594 fValue.fArrayAndCount.fArray = createArrayCopy(array, count);
617 fValue.fArrayAndCount.fArray = array;
685 return fValue.fArrayAndCount.fArray;
/external/icu/icu4c/source/i18n/unicode/
H A Dfmtable.h448 { count=fValue.fArrayAndCount.fCount; return fValue.fArrayAndCount.fArray; }
469 Formattable& operator[](int32_t index) { return fValue.fArrayAndCount.fArray[index]; }
702 Formattable* fArray; member in struct:Formattable::__anon7380::__anon7381
/external/icu/icu4c/source/common/
H A Dunistr.cpp123 umtx_atomic_inc((u_atomic_int32_t *)fUnion.fFields.fArray - 1);
128 return umtx_atomic_dec((u_atomic_int32_t *)fUnion.fFields.fArray - 1);
133 return umtx_loadAcquire(*((u_atomic_int32_t *)fUnion.fFields.fArray - 1));
139 uprv_free((int32_t *)fUnion.fFields.fArray - 1);
388 // have fArray point to the first UChar
389 fUnion.fFields.fArray = (UChar *)array;
396 fUnion.fFields.fArray = 0;
532 fUnion.fFields.fArray = src.fUnion.fFields.fArray;
542 fUnion.fFields.fArray
[all...]
/external/icu/icu4c/source/tools/gennorm2/
H A Dn2builder.cpp556 UChar32 charAt(int32_t i) const { return fArray[i]>>8; }
557 uint8_t ccAt(int32_t i) const { return (uint8_t)fArray[i]; }
564 fArray[fLength++]=(c<<8)|cc;
575 fArray[j]=fArray[j-1];
577 fArray[i]=(c<<8)|cc;
588 fArray[fLastStarterIndex]=composite<<8;
592 fArray[combMarkIndex]=fArray[combMarkIndex+1];
597 int32_t fArray[Normalizer2Imp member in class:BuilderReorderingBuffer
[all...]
/external/icu/icu4c/source/tools/genrb/
H A Dwrtjava.cpp393 len=itostr(buf,res->fArray[i],10,0);
405 len=itostr(buf,res->fArray[i],10,0);
H A Dreslist.cpp336 fCount(0), fArray(new uint32_t[RESLIST_MAX_INT_VECTOR]) {
337 if (fArray == NULL) {
344 delete[] fArray;
349 fArray[fCount++] = value;
764 udata_write32(mem, fArray[i]);
H A Dreslist.h387 uint32_t *fArray; member in class:IntVectorResource
/external/skia/src/ports/
H A DSkFontHost_mac.cpp2220 : fArray(CTFontDescriptorCreateMatchingFontDescriptors(desc, nullptr))
2223 if (!fArray) {
2224 fArray.reset(CFArrayCreate(nullptr, nullptr, 0, nullptr));
2226 fCount = SkToInt(CFArrayGetCount(fArray.get()));
2235 CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray.get(), index);
2247 SkASSERT((unsigned)index < (unsigned)CFArrayGetCount(fArray.get()));
2248 CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray.get(), index);
2261 UniqueCFRef<CFArrayRef> fArray; member in class:LinearInterpolater::SkFontStyleSet_Mac
2269 CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray.get(), i);
H A DSkFontHost_win.cpp2364 ::EnumFontFamiliesEx(hdc, &lf, enum_family_proc, (LPARAM)&fArray, 0);
2369 return fArray.count();
2374 *fs = get_style(fArray[index].elfLogFont);
2377 const ENUMLOGFONTEX& ref = fArray[index];
2390 return SkCreateTypefaceFromLOGFONT(fArray[index].elfLogFont);
2398 SkTDArray<ENUMLOGFONTEX> fArray;
/external/icu/icu4c/source/common/unicode/
H A Dunistr.h3524 // sets fArray, fCapacity, and flags
3625 kRefCounted=4, // there is a refCount field before the characters in fArray
3698 int32_t fLength; // number of characters in fArray if >127; else undefined
3699 int32_t fCapacity; // capacity of fArray (in UChars)
3702 UChar *fArray; // the Unicode data member in struct:UnicodeString::StackBufferOrFields::__anon7259
3758 fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
3764 fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
3829 return fUnion.fFields.fArray;
4465 fUnion.fFields.fArray = array;

Completed in 2981 milliseconds

12