/third_party/skia/src/core/ |
D | SkTDPQueue.h | 33 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 …]
|
D | SkPictureFlat.h | 183 SkTypefacePlayback() : fCount(0), fArray(nullptr) {} in SkTypefacePlayback() 192 return fArray[index]; 196 buffer.setTypefaceArray(fArray.get(), fCount); in setupBuffer() 201 std::unique_ptr<sk_sp<SkTypeface>[]> fArray; variable 206 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } in SkFactoryPlayback() 208 ~SkFactoryPlayback() { delete[] fArray; } in ~SkFactoryPlayback() 210 SkFlattenable::Factory* base() const { return fArray; } in base() 213 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer() 218 SkFlattenable::Factory* fArray; variable
|
/third_party/flutter/skia/src/core/ |
D | SkTDPQueue.h | 33 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 …]
|
D | SkTDynamicHash.h | 25 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 …]
|
D | SkPictureFlat.h | 170 SkTypefacePlayback() : fCount(0), fArray(nullptr) {} in SkTypefacePlayback() 179 return fArray[index]; 183 buffer.setTypefaceArray(fArray.get(), fCount); in setupBuffer() 188 std::unique_ptr<sk_sp<SkTypeface>[]> fArray; variable 193 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } in SkFactoryPlayback() 195 ~SkFactoryPlayback() { delete[] fArray; } in ~SkFactoryPlayback() 197 SkFlattenable::Factory* base() const { return fArray; } in base() 200 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer() 205 SkFlattenable::Factory* fArray; variable
|
/third_party/flutter/skia/include/private/ |
D | SkTDArray.h | 21 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 …]
|
D | SkTemplates.h | 80 fArray.reset(new T[count]); in SkAutoTArray() 85 SkAutoTArray(SkAutoTArray&& other) : fArray(std::move(other.fArray)) { in SkAutoTArray() 90 fArray = std::move(other.fArray); 102 T* get() const { return fArray.get(); } in get() 108 return fArray[index]; 112 std::unique_ptr<T[]> fArray; 127 fArray = nullptr; in SkAutoSTArray() 134 fArray = nullptr; in SkAutoSTArray() 145 T* start = fArray; in reset() 155 SkASSERT((T*) fStorage != fArray); in reset() [all …]
|
/third_party/skia/include/private/ |
D | SkTDArray.h | 29 SkTDArray() : fArray(nullptr), fReserve(0), fCount(0) {} in SkTDArray() 34 fArray = nullptr; in SkTDArray() 36 fArray = (T*)sk_malloc_throw(SkToSizeT(count) * sizeof(T)); in SkTDArray() 37 memcpy(fArray, src, sizeof(T) * SkToSizeT(count)); in SkTDArray() 42 SkTDArray(const SkTDArray<T>& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray() 43 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray() 46 SkTDArray(SkTDArray<T>&& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray() 50 sk_free(fArray); in ~SkTDArray() 56 SkTDArray<T> tmp(src.fArray, src.fCount); 59 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * SkToSizeT(src.fCount)); [all …]
|
D | SkTemplates.h | 88 fArray.reset(new T[count]); in SkAutoTArray() 93 SkAutoTArray(SkAutoTArray&& other) : fArray(std::move(other.fArray)) { in SkAutoTArray() 98 fArray = std::move(other.fArray); 110 T* get() const { return fArray.get(); } in get() 116 return fArray[index]; 120 const T* data() const { return fArray.get(); } in data() 121 T* data() { return fArray.get(); } in data() 124 std::unique_ptr<T[]> fArray; 139 fArray = nullptr; in SkAutoSTArray() 146 fArray = nullptr; in SkAutoSTArray() [all …]
|
/third_party/flutter/skia/bench/ |
D | ScalarBench.cpp | 56 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 …]
|
D | MatrixBench.cpp | 100 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 …]
|
/third_party/skia/bench/ |
D | ScalarBench.cpp | 56 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 …]
|
D | MatrixBench.cpp | 100 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 …]
|
/third_party/skia/experimental/xform/ |
D | SkShape.h | 65 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()
|
D | SkShape.cpp | 17 if (fArray.count() == 0) { in draw() 22 for (auto s : fArray) { in draw()
|
/third_party/flutter/skia/experimental/xform/ |
D | SkShape.h | 65 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()
|
D | SkShape.cpp | 17 if (fArray.count() == 0) { in draw() 22 for (auto s : fArray) { in draw()
|
/third_party/flutter/skia/samplecode/ |
D | SampleHT.cpp | 127 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()
|
/third_party/glslang/Test/ |
D | spv.structDeref.frag | 47 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…
|
D | structDeref.frag | 47 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…
|
/third_party/skia/src/gpu/effects/ |
D | GrMatrixConvolutionEffect.h | 63 new (&fArray) std::array<float, kMaxUniformSize>(that.fArray); in KernelWrapper() 72 return fArray; in array() 89 std::array<float, kMaxUniformSize> fArray; member
|
/third_party/flutter/skia/tests/ |
D | SerialProcsTest.cpp | 107 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()
|
/third_party/skia/tests/ |
D | SerialProcsTest.cpp | 107 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()
|
/third_party/glslang/Test/baseResults/ |
D | spv.structDeref.frag.out | 30 Name 40 "fArray" 117 40(fArray): 39(ptr) Variable Function 131 Store 40(fArray) 42 149 Store 40(fArray) 79 178 107: 30(ptr) AccessChain 40(fArray) 106
|
/third_party/skia/src/ports/ |
D | SkFontMgr_mac_ct.cpp | 302 : fArray(CTFontDescriptorCreateMatchingFontDescriptors(desc, nullptr)) in SkFontStyleSet_Mac() 305 if (!fArray) { in SkFontStyleSet_Mac() 306 fArray.reset(CFArrayCreate(nullptr, nullptr, 0, nullptr)); in SkFontStyleSet_Mac() 308 fCount = SkToInt(CFArrayGetCount(fArray.get())); in SkFontStyleSet_Mac() 317 CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray.get(), index); in getStyle() 329 SkASSERT((unsigned)index < (unsigned)CFArrayGetCount(fArray.get())); in createTypeface() 330 CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray.get(), index); in createTypeface() 343 SkUniqueCFRef<CFArrayRef> fArray; member in __anonc354946b0211::SkFontStyleSet_Mac 351 CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray.get(), i); in findMatchingDesc()
|