Home
last modified time | relevance | path

Searched refs:fCount (Results 1 – 25 of 142) 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 …]
/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 …]
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/skia/include/gpu/
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 …]
/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/
DSkColorTable.cpp18 fCount = count; in init()
36 , fCount(count) in SkColorTable()
51 f16BitCache = (uint16_t*)sk_malloc_throw(fCount * sizeof(uint16_t)); in read16BitCache()
52 for (int i = 0; i < fCount; i++) { in read16BitCache()
67 fCount = buffer.getArrayCount();
68 size_t allocSize = fCount * sizeof(SkPMColor);
72 SkDEBUGCODE(success =) buffer.readColorArray(fColors, fCount);
74 fCount = 0;
78 SkASSERT((unsigned)fCount <= 256);
85 buffer.writeColorArray(fColors, fCount); in writeToBuffer()
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()
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()
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()
DSkPictureFlat.h160 int count() const { return fCount; } in count()
168 buffer.setTypefaceArray((SkTypeface**)fArray, fCount); in setupBuffer()
172 int fCount;
178 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } in SkFactoryPlayback()
185 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer()
189 int fCount;
DSkRTree.cpp10 SkRTree::SkRTree(SkScalar aspectRatio) : fCount(0), fAspectRatio(aspectRatio) {} in SkRTree()
13 if (fCount) { in getRootBound()
21 SkASSERT(0 == fCount); in insert()
37 fCount = branches.count(); in insert()
38 if (fCount) { in insert()
39 if (1 == fCount) { in insert()
47 fNodes.setReserve(CountNodes(fCount, fAspectRatio)); in insert()
165 if (fCount > 0 && SkRect::Intersects(fRoot.fBounds, query)) { in search()
/external/skia/samplecode/
DSampleVertices.cpp90 canvas->drawVertices(fRecs[i].fMode, fRecs[i].fCount, in onDrawContent()
97 canvas->drawVertices(fRecs[i].fMode, fRecs[i].fCount, in onDrawContent()
104 canvas->drawVertices(fRecs[i].fMode, fRecs[i].fCount, in onDrawContent()
127 int fCount; member
131 Rec() : fCount(0), fVerts(nullptr), fTexs(nullptr) {} in Rec()
140 rec->fCount = n * 3; in make_tris()
141 rec->fVerts = new SkPoint[rec->fCount]; in make_tris()
157 rec->fCount = n + 2; in make_fan()
158 rec->fVerts = new SkPoint[rec->fCount]; in make_fan()
159 rec->fTexs = new SkPoint[rec->fCount]; in make_fan()
[all …]
DSamplePictFile.cpp36 SkCounterDrawFilter(int count) : fCount(count) {} in SkCounterDrawFilter()
39 return --fCount >= 0; in filter()
42 int fCount; member in SkCounterDrawFilter
54 fCount = 0; in PictFileView()
98 case 'n': fCount += 1; this->inval(nullptr); return true; in onQuery()
99 case 'p': fCount -= 1; this->inval(nullptr); return true; in onQuery()
100 case 's': fCount = 0; this->inval(nullptr); return true; in onQuery()
133 SkCounterDrawFilter filter(fCount); in onDrawContent()
134 if (fCount > 0) { in onDrawContent()
160 int fCount; member in PictFileView
/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/include/core/
DSkColorTable.h34 int count() const { return fCount; } in count()
40 SkASSERT(fColors != NULL && (unsigned)index < (unsigned)fCount);
67 int fCount; variable
75 if (count < 0 || count > fCount) { in dangerous_overwriteColors()
80 fCount = count; // update fCount, in case count is smaller in dangerous_overwriteColors()
/external/skia/src/effects/
DSkLayerDrawLooper.cpp29 fCount(0) { in SkLayerDrawLooper()
167 if (fCount != 2) { in asABlurShadow()
211 if (!fCount) { in onMakeColorSpace()
216 looper->fCount = fCount; in onMakeColorSpace()
244 buffer.writeInt(fCount); in flatten()
247 for (int i = 0; i < fCount; i++) { in flatten()
280 str->appendf("SkLayerDrawLooper (%d): ", fCount); in toString()
283 for (int i = 0; i < fCount; i++) { in toString()
339 fCount(0) { in Builder()
352 fCount += 1; in addLayer()
[all …]
DSkDashPathEffect.cpp24 fCount = count; in SkDashPathEffect()
30 SkDashPath::CalcDashParameters(phase, fIntervals, fCount, in SkDashPathEffect()
40 return SkDashPath::InternalFilter(dst, src, rec, cullRect, fIntervals, fCount, in filterPath()
173 if (fCount != 2 || in asPoints()
356 if (info->fCount >= fCount && info->fIntervals) { in asADash()
357 memcpy(info->fIntervals, fIntervals, fCount * sizeof(SkScalar)); in asADash()
359 info->fCount = fCount; in asADash()
367 buffer.writeScalarArray(fIntervals, fCount); in flatten()
383 str->appendf("count: %d phase %.2f intervals: (", fCount, fPhase); in toString()
384 for (int i = 0; i < fCount; ++i) { in toString()
[all …]
/external/skia/src/pathops/
DSkOpContour.h48 SkOpSegment* result = fCount++ 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