Home
last modified time | relevance | path

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

123

/external/skqp/src/core/
DSkTDPQueue.h33 SkTDPQueue(int reserve) { fArray.setReserve(reserve); } in SkTDPQueue()
42 int count() const { return fArray.count(); } in count()
45 const T& peek() const { return fArray[0]; } in peek()
46 T& peek() { return fArray[0]; } in peek()
51 SkDEBUGCODE(if (SkToBool(INDEX)) { *INDEX(fArray[0]) = -1; }) in pop()
52 if (1 == fArray.count()) { in pop()
53 fArray.pop(); in pop()
57 fArray[0] = fArray[fArray.count() - 1]; in pop()
59 fArray.pop(); in pop()
68 int index = fArray.count(); in insert()
[all …]
DSkTDynamicHash.h25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(nullptr) { in SkTDynamicHash()
30 sk_free(fArray); in ~SkTDynamicHash()
54 T* current() const { return fHash->fArray[fCurrentIndex]; } in current()
81 const T* current() const { return fHash->fArray[fCurrentIndex]; } in current()
94 T* candidate = fArray[index]; in find()
123 if (fArray) { in rewind()
124 sk_bzero(fArray, sizeof(T*)* fCapacity); in rewind()
134 sk_free(fArray); in reset()
135 fArray = nullptr; in reset()
148 const T* candidate = fArray[index]; in countCollisions()
[all …]
DSkPictureFlat.h168 SkTypefacePlayback() : fCount(0), fArray(nullptr) {} in SkTypefacePlayback()
177 return fArray[index];
181 buffer.setTypefaceArray(fArray.get(), fCount); in setupBuffer()
186 std::unique_ptr<sk_sp<SkTypeface>[]> fArray; variable
191 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } in SkFactoryPlayback()
193 ~SkFactoryPlayback() { delete[] fArray; } in ~SkFactoryPlayback()
195 SkFlattenable::Factory* base() const { return fArray; } in base()
198 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer()
203 SkFlattenable::Factory* fArray; variable
/external/skia/src/core/
DSkTDPQueue.h33 SkTDPQueue(int reserve) { fArray.setReserve(reserve); } in SkTDPQueue()
42 int count() const { return fArray.count(); } in count()
45 const T& peek() const { return fArray[0]; } in peek()
46 T& peek() { return fArray[0]; } in peek()
51 SkDEBUGCODE(if (SkToBool(INDEX)) { *INDEX(fArray[0]) = -1; }) in pop()
52 if (1 == fArray.count()) { in pop()
53 fArray.pop(); in pop()
57 fArray[0] = fArray[fArray.count() - 1]; in pop()
59 fArray.pop(); in pop()
68 int index = fArray.count(); in insert()
[all …]
DSkTDynamicHash.h25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(nullptr) { in SkTDynamicHash()
30 sk_free(fArray); in ~SkTDynamicHash()
54 T* current() const { return fHash->fArray[fCurrentIndex]; } in current()
81 const T* current() const { return fHash->fArray[fCurrentIndex]; } in current()
94 T* candidate = fArray[index]; in find()
123 if (fArray) { in rewind()
124 sk_bzero(fArray, sizeof(T*)* fCapacity); in rewind()
134 sk_free(fArray); in reset()
135 fArray = nullptr; in reset()
148 const T* candidate = fArray[index]; in countCollisions()
[all …]
DSkPictureFlat.h171 SkTypefacePlayback() : fCount(0), fArray(nullptr) {} in SkTypefacePlayback()
180 return fArray[index];
184 buffer.setTypefaceArray(fArray.get(), fCount); in setupBuffer()
189 std::unique_ptr<sk_sp<SkTypeface>[]> fArray; variable
194 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } in SkFactoryPlayback()
196 ~SkFactoryPlayback() { delete[] fArray; } in ~SkFactoryPlayback()
198 SkFlattenable::Factory* base() const { return fArray; } in base()
201 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer()
206 SkFlattenable::Factory* fArray; variable
/external/skia/include/private/
DSkTDArray.h22 SkTDArray() : fArray(nullptr), fReserve(0), fCount(0) {} in SkTDArray()
27 fArray = nullptr; in SkTDArray()
29 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray()
30 memcpy(fArray, src, sizeof(T) * count); in SkTDArray()
35 SkTDArray(const SkTDArray<T>& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
36 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray()
39 SkTDArray(SkTDArray<T>&& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
43 sk_free(fArray); in ~SkTDArray()
49 SkTDArray<T> tmp(src.fArray, src.fCount);
52 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
[all …]
DSkTemplates.h85 fArray.reset(new T[count]); in SkAutoTArray()
90 SkAutoTArray(SkAutoTArray&& other) : fArray(std::move(other.fArray)) { in SkAutoTArray()
95 fArray = std::move(other.fArray);
107 T* get() const { return fArray.get(); } in get()
113 return fArray[index];
117 std::unique_ptr<T[]> fArray;
132 fArray = nullptr; in SkAutoSTArray()
139 fArray = nullptr; in SkAutoSTArray()
150 T* start = fArray; in reset()
160 SkASSERT((T*) fStorage != fArray); in reset()
[all …]
/external/skqp/include/private/
DSkTDArray.h21 SkTDArray() : fArray(nullptr), fReserve(0), fCount(0) {} in SkTDArray()
26 fArray = nullptr; in SkTDArray()
28 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray()
29 memcpy(fArray, src, sizeof(T) * count); in SkTDArray()
34 SkTDArray(const SkTDArray<T>& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
35 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray()
38 SkTDArray(SkTDArray<T>&& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
42 sk_free(fArray); in ~SkTDArray()
48 SkTDArray<T> tmp(src.fArray, src.fCount);
51 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
[all …]
DSkTemplates.h79 fArray.reset(new T[count]); in SkAutoTArray()
84 SkAutoTArray(SkAutoTArray&& other) : fArray(std::move(other.fArray)) { in SkAutoTArray()
89 fArray = std::move(other.fArray);
101 T* get() const { return fArray.get(); } in get()
107 return fArray[index];
111 std::unique_ptr<T[]> fArray;
126 fArray = nullptr; in SkAutoSTArray()
133 fArray = nullptr; in SkAutoSTArray()
144 T* start = fArray; in reset()
154 SkASSERT((T*) fStorage != fArray); in reset()
[all …]
/external/skqp/bench/
DScalarBench.cpp56 init9(fArray); in FloatComparisonBench()
63 junk ^= (fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f); in performTest()
64 junk ^= (fArray[2] != 0.0f || fArray[5] != 0.0f); in performTest()
67 float fArray[9]; member in FloatComparisonBench
75 init9(fArray); in ForcedIntComparisonBench()
82 junk ^= (SkScalarAs2sCompliment(fArray[6]) | in performTest()
83 SkScalarAs2sCompliment(fArray[7]) | in performTest()
84 (SkScalarAs2sCompliment(fArray[8]) - kPersp1Int)); in performTest()
85 junk ^= (SkScalarAs2sCompliment(fArray[2]) | in performTest()
86 SkScalarAs2sCompliment(fArray[5])); in performTest()
[all …]
DMatrixBench.cpp100 fArray[0] = (float) fRnd.nextS(); in GetTypeMatrixBench()
101 fArray[1] = (float) fRnd.nextS(); in GetTypeMatrixBench()
102 fArray[2] = (float) fRnd.nextS(); in GetTypeMatrixBench()
103 fArray[3] = (float) fRnd.nextS(); in GetTypeMatrixBench()
104 fArray[4] = (float) fRnd.nextS(); in GetTypeMatrixBench()
105 fArray[5] = (float) fRnd.nextS(); in GetTypeMatrixBench()
106 fArray[6] = (float) fRnd.nextS(); in GetTypeMatrixBench()
107 fArray[7] = (float) fRnd.nextS(); in GetTypeMatrixBench()
108 fArray[8] = (float) fRnd.nextS(); in GetTypeMatrixBench()
115 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest()
[all …]
/external/skia/bench/
DScalarBench.cpp56 init9(fArray); in FloatComparisonBench()
63 junk ^= (fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f); in performTest()
64 junk ^= (fArray[2] != 0.0f || fArray[5] != 0.0f); in performTest()
67 float fArray[9]; member in FloatComparisonBench
75 init9(fArray); in ForcedIntComparisonBench()
82 junk ^= (SkScalarAs2sCompliment(fArray[6]) | in performTest()
83 SkScalarAs2sCompliment(fArray[7]) | in performTest()
84 (SkScalarAs2sCompliment(fArray[8]) - kPersp1Int)); in performTest()
85 junk ^= (SkScalarAs2sCompliment(fArray[2]) | in performTest()
86 SkScalarAs2sCompliment(fArray[5])); in performTest()
[all …]
DMatrixBench.cpp100 fArray[0] = (float) fRnd.nextS(); in GetTypeMatrixBench()
101 fArray[1] = (float) fRnd.nextS(); in GetTypeMatrixBench()
102 fArray[2] = (float) fRnd.nextS(); in GetTypeMatrixBench()
103 fArray[3] = (float) fRnd.nextS(); in GetTypeMatrixBench()
104 fArray[4] = (float) fRnd.nextS(); in GetTypeMatrixBench()
105 fArray[5] = (float) fRnd.nextS(); in GetTypeMatrixBench()
106 fArray[6] = (float) fRnd.nextS(); in GetTypeMatrixBench()
107 fArray[7] = (float) fRnd.nextS(); in GetTypeMatrixBench()
108 fArray[8] = (float) fRnd.nextS(); in GetTypeMatrixBench()
115 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest()
[all …]
/external/skia/experimental/xform/
DSkShape.h65 SkTDArray<Shape*> fArray; variable
81 fArray.unrefAll(); in ~GroupShape()
84 int count() const { return fArray.count(); } in count()
85 Shape* get(int index) const { return fArray[index]; } in get()
87 fArray[index] = s.release(); in set()
91 *fArray.append() = s.release(); in append()
94 *fArray.insert(index) = s.release(); in insert()
97 SkSafeUnref(fArray[index]); in remove()
98 fArray.remove(index); in remove()
DSkShape.cpp17 if (fArray.count() == 0) { in draw()
22 for (auto s : fArray) { in draw()
/external/skia/samplecode/
DSampleHT.cpp127 Rec fArray[N]; member in HTView
137 fArray[i].fDrawable = new HTDrawable(rand); in HTView()
138 canvas->drawDrawable(fArray[i].fDrawable); in HTView()
139 fArray[i].fDrawable->unref(); in HTView()
154 fArray[i].fDrawable->setTime(fTime); in onAnimate()
162 if (fArray[i].fDrawable->hitTest(x, y)) { in onFindClickHandler()
163 fArray[i].fDrawable->spawnAnimation(fTime); in onFindClickHandler()
/external/skqp/samplecode/
DSampleHT.cpp127 Rec fArray[N]; member in HTView
137 fArray[i].fDrawable = new HTDrawable(rand); in HTView()
138 canvas->drawDrawable(fArray[i].fDrawable); in HTView()
139 fArray[i].fDrawable->unref(); in HTView()
160 fArray[i].fDrawable->setTime(fTime); in onAnimate()
168 if (fArray[i].fDrawable->hitTest(x, y)) { in onFindClickHandler()
169 fArray[i].fDrawable->spawnAnimation(fTime); in onFindClickHandler()
/external/angle/third_party/glslang/src/Test/
Dspv.structDeref.frag47 float[6] fArray;
54 fArray = float[6]( 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
61 fArray = float[6]( 0.0, 1.0, 2.0, 3.0, 4.0, 5.0);
70 …gl_FragColor = (float(locals0.i) + locals1Array[6].f + fArray[3] + locals2.s1_1.f) * texture(samp2…
DstructDeref.frag47 float[6] fArray;
54 fArray = float[6]( 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
61 fArray = float[6]( 0.0, 1.0, 2.0, 3.0, 4.0, 5.0);
70 …gl_FragColor = (float(locals0.i) + locals1Array[6].f + fArray[3] + locals2.s1_1.f) * texture2D(sam…
/external/deqp-deps/glslang/Test/
Dspv.structDeref.frag47 float[6] fArray;
54 fArray = float[6]( 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
61 fArray = float[6]( 0.0, 1.0, 2.0, 3.0, 4.0, 5.0);
70 …gl_FragColor = (float(locals0.i) + locals1Array[6].f + fArray[3] + locals2.s1_1.f) * texture(samp2…
DstructDeref.frag47 float[6] fArray;
54 fArray = float[6]( 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
61 fArray = float[6]( 0.0, 1.0, 2.0, 3.0, 4.0, 5.0);
70 …gl_FragColor = (float(locals0.i) + locals1Array[6].f + fArray[3] + locals2.s1_1.f) * texture2D(sam…
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/
DBindingsVersioningTest.java49 struct.fArray = new byte[] {10, 9, 8}; in newStruct()
108 v5.fArray = new byte[] {10, 9, 8}; in testOldToNew()
113 expected.fArray = new byte[] {10, 9, 8}; in testOldToNew()
127 v7.fArray = new byte[] {10, 9, 8}; in testOldToNew()
136 expected.fArray = new byte[] {10, 9, 8}; in testOldToNew()
193 expected.fArray = new byte[] {10, 9, 8}; in testNewToOld()
206 expected.fArray = new byte[] {10, 9, 8}; in testNewToOld()
/external/skia/tests/
DSerialProcsTest.cpp107 SkTDArray<SkPicture*> fArray; member
116 *c->fArray.append() = pic; in array_serial_proc()
127 int index = c->fArray.find(pic); in array_deserial_proc()
129 c->fArray.removeShuffle(index); in array_deserial_proc()
143 REPORTER_ASSERT(reporter, ctx.fArray.count() == count); in test_pictures()
146 REPORTER_ASSERT(reporter, ctx.fArray.count() == 0); in test_pictures()
/external/skqp/tests/
DSerialProcsTest.cpp108 SkTDArray<SkPicture*> fArray; member
117 *c->fArray.append() = pic; in array_serial_proc()
128 int index = c->fArray.find(pic); in array_deserial_proc()
130 c->fArray.removeShuffle(index); in array_deserial_proc()
144 REPORTER_ASSERT(reporter, ctx.fArray.count() == count); in test_pictures()
147 REPORTER_ASSERT(reporter, ctx.fArray.count() == 0); in test_pictures()

123