Home
last modified time | relevance | path

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

123456

/external/skia/include/private/
DSkTDArray.h18 fReserve = fCount = 0; in SkTDArray()
24 fReserve = fCount = 0; in SkTDArray()
29 fReserve = fCount = count; in SkTDArray()
33 fReserve = fCount = 0; in SkTDArray()
35 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray()
44 if (src.fCount > fReserve) {
45 SkTDArray<T> tmp(src.fArray, src.fCount);
48 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
49 fCount = src.fCount;
56 return a.fCount == b.fCount &&
[all …]
DSkTArray.h29 fCount = 0; in SkTArray()
48 this->init(array.fItemArray, array.fCount, NULL, 0); in SkTArray()
64 for (int i = 0; i < fCount; ++i) {
67 fCount = 0;
69 fCount = array.count();
75 for (int i = 0; i < fCount; ++i) { in ~SkTArray()
86 void reset() { this->pop_back_n(fCount); } in reset()
93 for (int i = 0; i < fCount; ++i) { in reset()
97 fCount = 0; in reset()
99 fCount = n; in reset()
[all …]
DSkTemplates.h119 SkDEBUGCODE(fCount = 0;) in SkAutoTArray()
129 SkDEBUGCODE(fCount = count;) in SkAutoTArray()
141 SkDEBUGCODE(fCount = count;) in reset()
153 SkASSERT((unsigned)index < (unsigned)fCount);
159 SkDEBUGCODE(SkTSwap(fCount, other.fCount)); in swap()
164 SkDEBUGCODE(int fCount;)
174 fCount = 0; in SkAutoSTArray()
181 fCount = 0; in SkAutoSTArray()
192 T* iter = start + fCount; in reset()
197 if (fCount != count) { in reset()
[all …]
/external/skia/src/animator/
DSkTypedArray.cpp31 fReserve = fCount = 0; in SkDS32Array()
40 fReserve = fCount = 0; in SkDS32Array()
45 SkDS32Array tmp(src.fArray, src.fCount); in SkDS32Array()
53 fReserve = fCount = 0; in SkDS32Array()
65 fReserve = fCount = SkToU16(count); in SkDS32Array()
73 if (src.fCount > fReserve) in operator =()
75 SkDS32Array tmp(src.fArray, src.fCount); in operator =()
80 memcpy(fArray, src.fArray, sizeof(int32_t) * src.fCount); in operator =()
81 fCount = src.fCount; in operator =()
89 return a.fCount == b.fCount && in operator ==()
[all …]
DSkTDStack.h17 SkTDStack() : fCount(0), fTotalCount(0) { in SkTDStack()
38 SkASSERT(fCount <= kSlotCount); in push()
39 if (fCount == kSlotCount) { in push()
43 fCount = 0; in push()
46 return &fRec->fSlots[fCount++]; in push()
52 SkASSERT(fRec && fCount > idx); in index()
53 return fRec->fSlots[fCount - idx - 1]; in index()
57 SkASSERT(fRec && fCount > idx); in index()
58 return fRec->fSlots[fCount - idx - 1]; in index()
62 SkASSERT(fRec && fCount > 0); in top()
[all …]
DSkTDArray_Experimental.h53 bool isEmpty() const { return fCount == 0; } in isEmpty()
54 int count() const { return fCount; } in count()
58 SkASSERT(index + count <= fCount);
59 fCount = SkToU16(fCount - count);
60 memmove(fArray + index, fArray + index + count, sizeof(int32_t) * (fCount - index));
72 fReserve = fCount = 0; in reset()
76 SkASSERT(fReserve == 0 && fCount == 0); in reset()
83 this->growBy(count - fCount); in setCount()
85 fCount = SkToU16(count); in setCount()
95 uint16_t fReserve, fCount; variable
[all …]
/external/icu/icu4c/source/i18n/
Dnfrlist.h36 uint32_t fCount; variable
41 , fCount(0)
45 for(uint32_t i = 0; i < fCount; ++i) { in ~NFRuleList()
57 fCount -= 1; in remove()
58 for (uint32_t i = index; i < fCount; ++i) { // assumes small arrays in remove()
64 if (fCount == fCapacity) { in add()
69 fStuff[fCount++] = thing; in add()
72 fCount = 0; in add()
75 uint32_t size() const { return fCount; } in size()
76 NFRule* last() const { return (fCount > 0 && fStuff != NULL) ? fStuff[fCount-1] : NULL; } in last()
[all …]
/external/skia/include/gpu/
DGrShaderVar.h43 , fCount(kNonArray) in GrShaderVar()
52 , fCount(arrayCount) in fType()
63 , fCount(arrayCount) in fType()
74 , fCount(arrayCount) in fType()
98 fCount = count;
112 fCount = count;
119 bool isArray() const { return kNonArray != fCount; } in isArray()
123 bool isUnsizedArray() const { return kUnsizedArray == fCount; } in isUnsizedArray()
127 int getArrayCount() const { return fCount; } in getArrayCount()
131 void setArrayCount(int count) { fCount = count; } in setArrayCount()
[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.cpp19 fCount = count; in init()
37 , fCount(count) in SkColorTable()
52 auto cache = new uint16_t[fCount]; in read16BitCache()
53 for (int i = 0; i < fCount; i++) { in read16BitCache()
68 fCount = buffer.getArrayCount();
69 size_t allocSize = fCount * sizeof(SkPMColor);
73 SkDEBUGCODE(success =) buffer.readColorArray(fColors, fCount);
75 fCount = 0;
79 SkASSERT((unsigned)fCount <= 256);
86 buffer.writeColorArray(fColors, fCount); in writeToBuffer()
DSkPictureFlat.cpp21 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(nullptr) {} in SkTypefacePlayback()
28 for (int i = 0; i < fCount; i++) { in reset()
35 fCount = rec->count(); in reset()
36 fArray = new SkRefCnt* [fCount]; in reset()
38 for (int i = 0; i < fCount; i++) { in reset()
42 fCount = 0; in reset()
50 fCount = count; in setCount()
56 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 …]
DSkFontStream.cpp104 SfntHeader() : fCount(0), fDir(nullptr) {} in SfntHeader()
117 fCount = count_tables(stream, ttcIndex, &offsetToDir); in init()
118 if (0 == fCount) { in init()
127 size_t size = fCount * sizeof(SkSFNTDirEntry); in init()
132 int fCount; member
163 for (int i = 0; i < header.fCount; i++) { in GetTableTags()
167 return header.fCount; in GetTableTags()
178 for (int i = 0; i < header.fCount; i++) { in GetTableData()
DSkTLList.h41 SkTLList() : fCount(0) { in SkTLList()
151 SkASSERT(0 == fCount); in reset()
155 int count() const { return fCount; } in count()
156 bool isEmpty() const { this->validate(); return 0 == fCount; } in isEmpty()
162 if (fCount != list.fCount) {
234 SkASSERT(fCount > 0); in createNode()
246 ++fCount; in createNode()
267 --fCount; in removeNode()
273 SkASSERT((0 == fCount) == fList.isEmpty()); in validate()
274 if (0 == fCount) { in validate()
[all …]
DSkTMultiMap.h31 SkTMultiMap() : fCount(0) {} in SkTMultiMap()
34 SkASSERT(fCount == 0); in ~SkTMultiMap()
53 ++fCount; in insert()
80 --fCount; in remove()
103 int count() const { return fCount; } in count()
120 int fCount; variable
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()
/external/skia/src/gpu/
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/skia/samplecode/
DSampleVertices.cpp99 canvas->drawVertices(fRecs[i].fMode, fRecs[i].fCount, in onDrawContent()
106 canvas->drawVertices(fRecs[i].fMode, fRecs[i].fCount, in onDrawContent()
113 canvas->drawVertices(fRecs[i].fMode, fRecs[i].fCount, in onDrawContent()
136 int fCount; member
140 Rec() : fCount(0), fVerts(nullptr), fTexs(nullptr) {} in Rec()
149 rec->fCount = n * 3; in make_tris()
150 rec->fVerts = new SkPoint[rec->fCount]; in make_tris()
166 rec->fCount = n + 2; in make_fan()
167 rec->fVerts = new SkPoint[rec->fCount]; in make_fan()
168 rec->fTexs = new SkPoint[rec->fCount]; in make_fan()
[all …]
DSamplePictFile.cpp38 SkCounterDrawFilter(int count) : fCount(count) {} in SkCounterDrawFilter()
41 return --fCount >= 0; in filter()
44 int fCount; member in SkCounterDrawFilter
56 fCount = 0; in PictFileView()
95 case 'n': fCount += 1; this->inval(nullptr); return true; in onQuery()
96 case 'p': fCount -= 1; this->inval(nullptr); return true; in onQuery()
97 case 's': fCount = 0; this->inval(nullptr); return true; in onQuery()
124 SkCounterDrawFilter filter(fCount); in onDrawContent()
125 if (fCount > 0) { in onDrawContent()
151 int fCount; member in PictFileView
/external/skia/src/pathops/
DSkOpContour.h38 SkASSERT(fCount > 0); in addAlignIntersections()
64 SkASSERT(fCount > 0); in align()
72 SkOpSegment* result = fCount++ in appendSegment()
99 SkASSERT(fCount > 0); in calcAngles()
111 return fCount; in count()
201 SkASSERT(fCount > 0); in findCollapsed()
212 SkASSERT(fCount > 0); in first()
217 SkASSERT(fCount > 0); in first()
248 SkASSERT(fCount > 0); in missingCoincidence()
269 SkASSERT(fCount > 0); in moveMultiples()
[all …]
/external/skia/src/gpu/gl/
DGrGLGpuProgramCache.cpp46 : fCount(0) in ProgramCache()
61 for (int i = 0; i < fCount; ++i){ in ~ProgramCache()
81 for (int i = 0; i < fCount; ++i) { in reset()
87 fCount = 0; in reset()
108 return SkTSearch(fEntries, fCount, desc, sizeof(Entry*), less); in search()
151 if (fCount < kMaxEntries) { in refProgram()
153 purgeIdx = fCount++; in refProgram()
156 SkASSERT(fCount == kMaxEntries); in refProgram()
194 for (int i = 0; i < fCount - 1; ++i) { in refProgram()
209 for (int i = 0; i < fCount; ++i) { in refProgram()
/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);
66 int fCount; variable
73 if (count < 0 || count > fCount) { in dangerous_overwriteColors()
78 fCount = count; // update fCount, in case count is smaller in dangerous_overwriteColors()
/external/skia/src/effects/
DSkDashPathEffect.cpp24 fCount = count; in SkDashPathEffect()
31 SkDashPath::CalcDashParameters(phase, fIntervals, fCount, in SkDashPathEffect()
41 return SkDashPath::FilterDashPath(dst, src, rec, cullRect, fIntervals, fCount, in filterPath()
174 if (fCount != 2 || in asPoints()
350 if (info->fCount >= fCount && info->fIntervals) { in asADash()
351 memcpy(info->fIntervals, fIntervals, fCount * sizeof(SkScalar)); in asADash()
353 info->fCount = fCount; in asADash()
361 buffer.writeScalarArray(fIntervals, fCount); in flatten()
377 str->appendf("count: %d phase %.2f intervals: (", fCount, fPhase); in toString()
378 for (int i = 0; i < fCount; ++i) { in toString()
[all …]
/external/skia/gm/
Dgradients_2pt_conical.cpp14 int fCount; member
50 data.fCount, tm, 0, &localMatrix); in Make2ConicalOutside()
63 data.fCount, tm, 0, &localMatrix); in Make2ConicalOutsideFlip()
75 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInside()
88 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideFlip()
101 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalInsideCenter()
114 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRad()
127 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadFlip()
140 data.fColors, data.fPos, data.fCount, tm, in Make2ConicalZeroRadCenter()
154 data.fCount, tm, 0, &localMatrix); in Make2ConicalZeroRadOutside()
[all …]

123456