Home
last modified time | relevance | path

Searched refs:fCount (Results 1 – 25 of 132) sorted by relevance

123456

/external/skia/include/private/
DSkTDArray.h18 SkTDArray() : fArray(nullptr), fReserve(0), fCount(0) {} in SkTDArray()
22 fReserve = fCount = 0; in SkTDArray()
27 fReserve = fCount = count; in SkTDArray()
30 SkTDArray(const SkTDArray<T>& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
31 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray()
34 SkTDArray(SkTDArray<T>&& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
43 if (src.fCount > fReserve) {
44 SkTDArray<T> tmp(src.fArray, src.fCount);
47 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
48 fCount = src.fCount;
[all …]
DSkTArray.h40 this->init(that.fCount); in SkTArray()
46 this->init(that.fCount); in SkTArray()
48 that.fCount = 0; in SkTArray()
65 for (int i = 0; i < fCount; ++i) {
68 fCount = 0;
70 fCount = that.count();
78 for (int i = 0; i < fCount; ++i) {
81 fCount = 0;
83 fCount = that.count();
85 that.fCount = 0;
[all …]
DSkTemplates.h91 SkDEBUGCODE(fCount = 0;) in SkAutoTArray()
101 SkDEBUGCODE(fCount = count;) in SkAutoTArray()
113 SkDEBUGCODE(fCount = count;) in reset()
125 SkASSERT((unsigned)index < (unsigned)fCount);
131 SkDEBUGCODE(SkTSwap(fCount, other.fCount)); in swap()
136 SkDEBUGCODE(int fCount;)
146 fCount = 0; in SkAutoSTArray()
153 fCount = 0; in SkAutoSTArray()
164 T* iter = start + fCount; in reset()
170 if (fCount != count) { in reset()
[all …]
DSkSemaphore.h18 : fCount(count), fOSSemaphore(nullptr) {} in fCount() function
49 std::atomic<int> fCount; variable
61 int prev = fCount.fetch_add(n, std::memory_order_release); in signal()
81 if (fCount.fetch_sub(1, std::memory_order_acquire) <= 0) { in wait()
/external/skia/src/gpu/
DGrWindowRectangles.h18 GrWindowRectangles() : fCount(0) {} in GrWindowRectangles()
19 GrWindowRectangles(const GrWindowRectangles& that) : fCount(0) { *this = that; } in GrWindowRectangles()
24 bool empty() const { return !fCount; } in empty()
25 int count() const { return fCount; } in count()
41 const Rec* rec() const { return fCount <= kNumLocalWindows ? nullptr : fRec; } in rec()
43 int fCount; variable
61 return fCount <= kNumLocalWindows ? fLocalWindows : fRec->fData; in data()
66 fCount = 0; in reset()
71 fCount = that.fCount;
72 if (fCount <= kNumLocalWindows) {
[all …]
DGrShaderVar.h45 , fCount(kNonArray) in GrShaderVar()
54 , fCount(arrayCount) in fType()
66 , fCount(arrayCount) in fType()
78 , fCount(kNonArray) in fType()
89 , fCount(arrayCount) in fType()
99 , fCount(that.fCount) in GrShaderVar()
123 fCount = kNonArray;
147 fCount = kNonArray;
172 fCount = count;
197 fCount = count;
[all …]
DGrAllocator.h33 , fCount(0) in GrAllocator()
58 ++fCount; in push_back()
67 SkASSERT(fCount); in pop_back()
70 --fCount; in pop_back()
97 fCount = 0; in reset()
104 return fCount; in count()
110 bool empty() const { return 0 == fCount; } in empty()
116 SkASSERT(fCount); in back()
125 SkASSERT(fCount); in back()
155 return fItemIndex < fAllocator->fCount; in next()
[all …]
/external/icu/icu4c/source/i18n/
Dnfrlist.h38 uint32_t fCount; variable
43 , fCount(0)
47 for(uint32_t i = 0; i < fCount; ++i) { in ~NFRuleList()
59 fCount -= 1; in remove()
60 for (uint32_t i = index; i < fCount; ++i) { // assumes small arrays in remove()
66 if (fCount == fCapacity) { in add()
71 fStuff[fCount++] = thing; in add()
74 fCount = 0; in add()
77 uint32_t size() const { return fCount; } in size()
78 NFRule* last() const { return (fCount > 0 && fStuff != NULL) ? fStuff[fCount-1] : NULL; } in last()
[all …]
/external/dng_sdk/source/
Ddng_string_list.cpp27 : fCount (0) in dng_string_list()
64 if (fCount) in Allocate()
67 DoCopyBytes (fList, list, fCount * (uint32) sizeof (dng_string *)); in Allocate()
92 Allocate (fCount + 1); in Insert()
103 fCount++; in Insert()
105 for (uint32 j = fCount - 1; j > index; j--) in Insert()
121 for (uint32 j = 0; j < fCount; j++) in Contains()
145 for (uint32 index = 0; index < fCount; index++) in Clear()
158 fCount = 0; in Clear()
/external/skia/src/core/
DSkPictureFlat.cpp19 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(nullptr) {} in SkTypefacePlayback()
26 for (int i = 0; i < fCount; i++) { in reset()
33 fCount = rec->count(); in reset()
34 fArray = new SkRefCnt* [fCount]; in reset()
36 for (int i = 0; i < fCount; i++) { in reset()
40 fCount = 0; in reset()
48 fCount = count; in setCount()
54 SkASSERT((unsigned)index < (unsigned)fCount); in set()
DSkColorTable.cpp18 fCount = count; in init()
32 , fCount(count) in SkColorTable()
47 f16BitCache = (uint16_t*)sk_malloc_throw(fCount * sizeof(uint16_t)); in read16BitCache()
48 for (int i = 0; i < fCount; i++) { in read16BitCache()
73 fCount = buffer.getArrayCount();
74 size_t allocSize = fCount * sizeof(SkPMColor);
78 SkDEBUGCODE(success =) buffer.readColorArray(fColors, fCount);
80 fCount = 0;
84 SkASSERT((unsigned)fCount <= 256);
91 buffer.writeColorArray(fColors, fCount); in writeToBuffer()
DSkTDynamicHash.h25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(nullptr) { in SkTDynamicHash()
87 int count() const { return fCount; } in count()
126 fCount = 0; in rewind()
131 fCount = 0; in reset()
172 if (fCount < kLarge * kLarge) { in validate()
183 SKTDYNAMICHASH_CHECK(count == fCount); in validate()
188 if (fCount < kLarge) { in validate()
217 fCount++; in innerAdd()
234 fCount--; in innerRemove()
244 if (100 * (fCount + fDeleted + 1) > fCapacity * kGrowPercent) { in maybeGrow()
[all …]
DSkTLList.h46 SkTLList() : fCount(-1) {} in SkTLList()
149 SkASSERT(0 == fCount || -1 == fCount); in reset()
153 int count() const { return SkTMax(fCount ,0); } in count()
154 bool isEmpty() const { this->validate(); return 0 == fCount || -1 == fCount; } in isEmpty()
226 SkASSERT(-1 == fCount); in delayedInit()
232 fCount = 0; in delayedInit()
237 if (-1 == fCount) { in createNode()
247 SkASSERT(fCount > 0); in createNode()
259 ++fCount; in createNode()
280 --fCount; in removeNode()
[all …]
DSkFontStream.cpp105 SfntHeader() : fCount(0), fDir(nullptr) {} in SfntHeader()
118 fCount = count_tables(stream, ttcIndex, &offsetToDir); in init()
119 if (0 == fCount) { in init()
128 size_t size = fCount * sizeof(SkSFNTDirEntry); in init()
133 int fCount; member
164 for (int i = 0; i < header.fCount; i++) { in GetTableTags()
168 return header.fCount; in GetTableTags()
179 for (int i = 0; i < header.fCount; i++) { in GetTableData()
DSkPictureFlat.h162 int count() const { return fCount; } in count()
170 buffer.setTypefaceArray((SkTypeface**)fArray, fCount); in setupBuffer()
174 int fCount;
180 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } in SkFactoryPlayback()
187 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer()
191 int fCount;
DSkVertState.cpp12 if (index + 3 > state->fCount) { in Triangles()
25 if (index + 3 > state->fCount) { in TrianglesX()
37 if (index + 3 > state->fCount) { in TriangleStrip()
55 if (index + 3 > state->fCount) { in TriangleStripX()
72 if (index + 3 > state->fCount) { in TriangleFan()
85 if (index + 3 > state->fCount) { in TriangleFanX()
DSkRTree.cpp11 : fCount(0), fAspectRatio(isfinite(aspectRatio) ? aspectRatio : 1) {} in SkRTree()
14 if (fCount) { in getRootBound()
22 SkASSERT(0 == fCount); in insert()
38 fCount = branches.count(); in insert()
39 if (fCount) { in insert()
40 if (1 == fCount) { in insert()
48 fNodes.setReserve(CountNodes(fCount, fAspectRatio)); in insert()
166 if (fCount > 0 && SkRect::Intersects(fRoot.fBounds, query)) { in search()
DSkTMultiMap.h30 SkTMultiMap() : fCount(0) {} in SkTMultiMap()
33 SkASSERT(fCount == 0); in ~SkTMultiMap()
52 ++fCount; in insert()
79 --fCount; in remove()
102 int count() const { return fCount; } in count()
164 int fCount; variable
/external/skia/samplecode/
DSampleVertices.cpp86 auto verts = SkVertices::MakeCopy(fRecs[i].fMode, fRecs[i].fCount, in onDrawContent()
123 int fCount; member
127 Rec() : fCount(0), fVerts(nullptr), fTexs(nullptr) {} in Rec()
136 rec->fCount = n * 3; in make_tris()
137 rec->fVerts = new SkPoint[rec->fCount]; in make_tris()
153 rec->fCount = n + 2; in make_fan()
154 rec->fVerts = new SkPoint[rec->fCount]; in make_fan()
155 rec->fTexs = new SkPoint[rec->fCount]; in make_fan()
174 m.mapPoints(v, rec->fCount); in make_fan()
183 rec->fCount = 2 * (n + 1); in make_strip()
[all …]
/external/skia/tests/
DPackBitsTest.cpp27 int fCount; in test_pack8() member
38 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); in test_pack8()
40 gTests[i].fCount, dst, maxSize - 1); in test_pack8()
43 gTests[i].fCount, dst, sizeof(dst)); in test_pack8()
46 int srcCount = SkPackBits::Unpack8(dst, dstSize, src, gTests[i].fCount - 1); in test_pack8()
49 bool match = gTests[i].fCount == srcCount && in test_pack8()
51 gTests[i].fCount * sizeof(uint8_t)) == 0; in test_pack8()
/external/skia/src/effects/
DSkLayerDrawLooper.cpp30 fCount(0) { in SkLayerDrawLooper()
168 if (fCount != 2) { in asABlurShadow()
212 if (!fCount) { in onMakeColorSpace()
217 looper->fCount = fCount; in onMakeColorSpace()
245 buffer.writeInt(fCount); in flatten()
248 for (int i = 0; i < fCount; i++) { in flatten()
281 str->appendf("SkLayerDrawLooper (%d): ", fCount); in toString()
284 for (int i = 0; i < fCount; i++) { in toString()
340 fCount(0) { in Builder()
353 fCount += 1; in addLayer()
[all …]
DSkDashPathEffect.cpp24 fCount = count; in SkDashImpl()
30 SkDashPath::CalcDashParameters(phase, fIntervals, fCount, in SkDashImpl()
40 return SkDashPath::InternalFilter(dst, src, rec, cullRect, fIntervals, fCount, in filterPath()
170 if (fCount != 2 || in asPoints()
353 if (info->fCount >= fCount && info->fIntervals) { in asADash()
354 memcpy(info->fIntervals, fIntervals, fCount * sizeof(SkScalar)); in asADash()
356 info->fCount = fCount; in asADash()
364 buffer.writeScalarArray(fIntervals, fCount); in flatten()
380 str->appendf("count: %d phase %.2f intervals: (", fCount, fPhase); in toString()
381 for (int i = 0; i < fCount; ++i) { in toString()
[all …]
/external/skia/src/pathops/
DSkOpContour.h48 SkOpSegment* result = fCount++ ? this->globalState()->allocator()->make<SkOpSegment>() in appendSegment()
63 SkASSERT(fCount > 0); in calcAngles()
75 return fCount; in count()
177 SkASSERT(fCount > 0); in first()
182 SkASSERT(fCount > 0); in first()
223 SkASSERT(fCount > 0); in missingCoincidence()
236 SkASSERT(fCount > 0); in moveMultiples()
247 SkASSERT(fCount > 0); in moveNearby()
282 fCount = 0; in reset()
305 SkASSERT(fCount > 0); in setBounds()
[all …]
/external/skia/gm/
Dgradients_2pt_conical.cpp15 int fCount; member
49 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutside()
60 data.fPos, data.fCount, tm, 0, &localMatrix); in Make2ConicalOutsideFlip()
72 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInside()
85 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideFlip()
98 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenter()
111 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRad()
124 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadFlip()
136 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadCenter()
150 data.fCount, tm, 0, &localMatrix); in Make2ConicalZeroRadOutside()
[all …]
/external/icu/icu4c/source/layoutex/layout/
DRunArrays.h220 le_int32 fCount; variable
225 : UObject(), fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(0) in RunArray()
231 : UObject(), fClientArrays(FALSE), fLimits(NULL), fCount(0), fCapacity(0) in RunArray()
237 : UObject(), fClientArrays(TRUE), fLimits(limits), fCount(count), fCapacity(count) in RunArray()
244 return fCount; in getCount()
249 fCount = 0; in reset()
254 if (run < 0 || run >= fCount) { in getLimit()
263 return getLimit(fCount - 1); in getLimit()

123456