/external/skia/src/core/ |
D | SkTDPQueue.h | 39 int count() const { return fArray.count(); } in count() 42 const T& peek() const { return fArray[0]; } in peek() 43 T& peek() { return fArray[0]; } in peek() 48 SkDEBUGCODE(if (SkToBool(INDEX)) { *INDEX(fArray[0]) = -1; }) in pop() 49 if (1 == fArray.count()) { in pop() 50 fArray.pop(); in pop() 54 fArray[0] = fArray[fArray.count() - 1]; in pop() 56 fArray.pop(); in pop() 65 int index = fArray.count(); in insert() 66 *fArray.append() = entry; 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.cpp | 18 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(nullptr) {} in SkTypefacePlayback() 26 SkASSERT(fArray[i]); in reset() 27 fArray[i]->unref(); in reset() 29 delete[] fArray; in reset() 33 fArray = new SkRefCnt* [fCount]; in reset() 34 rec->copyToArray(fArray); in reset() 36 fArray[i]->ref(); in reset() 40 fArray = nullptr; in reset() 48 fArray = new SkRefCnt* [count]; in setCount() 49 sk_bzero(fArray, count * sizeof(SkRefCnt*)); in setCount() [all …]
|
D | SkPictureFlat.h | 172 buffer.setTypefaceArray((SkTypeface**)fArray, fCount); in setupBuffer() 177 SkRefCnt** fArray; variable 182 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } in SkFactoryPlayback() 184 ~SkFactoryPlayback() { delete[] fArray; } in ~SkFactoryPlayback() 186 SkFlattenable::Factory* base() const { return fArray; } in base() 189 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer() 194 SkFlattenable::Factory* fArray; variable
|
/external/skqp/src/core/ |
D | SkTDPQueue.h | 39 int count() const { return fArray.count(); } in count() 42 const T& peek() const { return fArray[0]; } in peek() 43 T& peek() { return fArray[0]; } in peek() 48 SkDEBUGCODE(if (SkToBool(INDEX)) { *INDEX(fArray[0]) = -1; }) in pop() 49 if (1 == fArray.count()) { in pop() 50 fArray.pop(); in pop() 54 fArray[0] = fArray[fArray.count() - 1]; in pop() 56 fArray.pop(); in pop() 65 int index = fArray.count(); in insert() 66 *fArray.append() = entry; 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.cpp | 18 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(nullptr) {} in SkTypefacePlayback() 26 SkASSERT(fArray[i]); in reset() 27 fArray[i]->unref(); in reset() 29 delete[] fArray; in reset() 33 fArray = new SkRefCnt* [fCount]; in reset() 34 rec->copyToArray(fArray); in reset() 36 fArray[i]->ref(); in reset() 40 fArray = nullptr; in reset() 48 fArray = new SkRefCnt* [count]; in setCount() 49 sk_bzero(fArray, count * sizeof(SkRefCnt*)); in setCount() [all …]
|
D | SkPictureFlat.h | 172 buffer.setTypefaceArray((SkTypeface**)fArray, fCount); in setupBuffer() 177 SkRefCnt** fArray; variable 182 SkFactoryPlayback(int count) : fCount(count) { fArray = new SkFlattenable::Factory[count]; } in SkFactoryPlayback() 184 ~SkFactoryPlayback() { delete[] fArray; } in ~SkFactoryPlayback() 186 SkFlattenable::Factory* base() const { return fArray; } in base() 189 buffer.setFactoryPlayback(fArray, fCount); in setupBuffer() 194 SkFlattenable::Factory* fArray; variable
|
/external/skia/include/private/ |
D | SkTDArray.h | 18 SkTDArray() : fArray(nullptr), fReserve(0), fCount(0) {} in SkTDArray() 23 fArray = nullptr; in SkTDArray() 25 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray() 26 memcpy(fArray, src, sizeof(T) * 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() 38 sk_free(fArray); in ~SkTDArray() 44 SkTDArray<T> tmp(src.fArray, src.fCount); 47 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * src.fCount); [all …]
|
D | SkTemplates.h | 90 fArray = nullptr; in SkAutoTArray() 97 fArray = nullptr; in SkAutoTArray() 99 fArray = new T[count]; in SkAutoTArray() 107 delete[] fArray; in reset() 109 fArray = nullptr; in reset() 111 fArray = new T[count]; in reset() 116 ~SkAutoTArray() { delete[] fArray; } in ~SkAutoTArray() 120 T* get() const { return fArray; } in get() 126 return fArray[index]; 130 SkTSwap(fArray, other.fArray); in swap() [all …]
|
/external/skqp/include/private/ |
D | SkTDArray.h | 18 SkTDArray() : fArray(nullptr), fReserve(0), fCount(0) {} in SkTDArray() 23 fArray = nullptr; in SkTDArray() 25 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray() 26 memcpy(fArray, src, sizeof(T) * 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() 38 sk_free(fArray); in ~SkTDArray() 44 SkTDArray<T> tmp(src.fArray, src.fCount); 47 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * src.fCount); [all …]
|
D | SkTemplates.h | 90 fArray = nullptr; in SkAutoTArray() 97 fArray = nullptr; in SkAutoTArray() 99 fArray = new T[count]; in SkAutoTArray() 107 delete[] fArray; in reset() 109 fArray = nullptr; in reset() 111 fArray = new T[count]; in reset() 116 ~SkAutoTArray() { delete[] fArray; } in ~SkAutoTArray() 120 T* get() const { return fArray; } in get() 126 return fArray[index]; 130 SkTSwap(fArray, other.fArray); in swap() [all …]
|
/external/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 …]
|
/external/skqp/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 …]
|
/external/skia/src/pipe/ |
D | SkRefSet.h | 16 ~SkRefSet() { fArray.unrefAll(); } in ~SkRefSet() 19 SkASSERT((unsigned)index < (unsigned)fArray.count()); in get() 20 return fArray[index]; in get() 24 if ((unsigned)index < (unsigned)fArray.count()) { in set() 25 SkRefCnt_SafeAssign(fArray[index], value); in set() 28 if (fArray.count() == index && value) { in set() 29 *fArray.append() = SkRef(value); in set() 32 SkDebugf("SkRefSet: index [%d] out of range %d\n", index, fArray.count()); in set() 37 SkTDArray<T*> fArray;
|
D | SkPipeCanvas.h | 23 void reset() { fArray.reset(); } in reset() 27 const Rec* stop = fArray.end(); in find() 28 for (const Rec* curr = fArray.begin(); curr < stop; ++curr) { in find() 38 Rec* rec = fArray.append(); in add() 50 SkTDArray<Rec> fArray; variable
|
/external/skqp/src/pipe/ |
D | SkRefSet.h | 16 ~SkRefSet() { fArray.unrefAll(); } in ~SkRefSet() 19 SkASSERT((unsigned)index < (unsigned)fArray.count()); in get() 20 return fArray[index]; in get() 24 if ((unsigned)index < (unsigned)fArray.count()) { in set() 25 SkRefCnt_SafeAssign(fArray[index], value); in set() 28 if (fArray.count() == index && value) { in set() 29 *fArray.append() = SkRef(value); in set() 32 SkDebugf("SkRefSet: index [%d] out of range %d\n", index, fArray.count()); in set() 37 SkTDArray<T*> fArray;
|
D | SkPipeCanvas.h | 23 void reset() { fArray.reset(); } in reset() 27 const Rec* stop = fArray.end(); in find() 28 for (const Rec* curr = fArray.begin(); curr < stop; ++curr) { in find() 38 Rec* rec = fArray.append(); in add() 50 SkTDArray<Rec> fArray; variable
|
/external/skqp/samplecode/ |
D | SampleHT.cpp | 128 Rec fArray[N]; member in HTView 138 fArray[i].fDrawable = new HTDrawable(rand); in HTView() 139 canvas->drawDrawable(fArray[i].fDrawable); in HTView() 140 fArray[i].fDrawable->unref(); in HTView() 161 fArray[i].fDrawable->setTime(fTime); in onAnimate() 169 if (fArray[i].fDrawable->hitTest(x, y)) { in onFindClickHandler() 170 fArray[i].fDrawable->spawnAnimation(fTime); in onFindClickHandler()
|
/external/skia/samplecode/ |
D | SampleHT.cpp | 128 Rec fArray[N]; member in HTView 138 fArray[i].fDrawable = new HTDrawable(rand); in HTView() 139 canvas->drawDrawable(fArray[i].fDrawable); in HTView() 140 fArray[i].fDrawable->unref(); in HTView() 161 fArray[i].fDrawable->setTime(fTime); in onAnimate() 169 if (fArray[i].fDrawable->hitTest(x, y)) { in onFindClickHandler() 170 fArray[i].fDrawable->spawnAnimation(fTime); in onFindClickHandler()
|
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/ |
D | BindingsVersioningTest.java | 39 struct.fArray = new byte[] {10, 9, 8}; in newStruct() 97 v5.fArray = new byte[] {10, 9, 8}; in testOldToNew() 102 expected.fArray = new byte[] {10, 9, 8}; in testOldToNew() 116 v7.fArray = new byte[] {10, 9, 8}; in testOldToNew() 125 expected.fArray = new byte[] {10, 9, 8}; in testOldToNew() 181 expected.fArray = new byte[] {10, 9, 8}; in testNewToOld() 194 expected.fArray = new byte[] {10, 9, 8}; in testNewToOld()
|
/external/skia/tests/ |
D | SerialProcsTest.cpp | 109 SkTDArray<SkPicture*> fArray; member 118 *c->fArray.append() = pic; in array_serial_proc() 129 int index = c->fArray.find(pic); in array_deserial_proc() 131 c->fArray.removeShuffle(index); in array_deserial_proc() 145 REPORTER_ASSERT(reporter, ctx.fArray.count() == count); in test_pictures() 148 REPORTER_ASSERT(reporter, ctx.fArray.count() == 0); in test_pictures()
|
/external/skqp/tests/ |
D | SerialProcsTest.cpp | 109 SkTDArray<SkPicture*> fArray; member 118 *c->fArray.append() = pic; in array_serial_proc() 129 int index = c->fArray.find(pic); in array_deserial_proc() 131 c->fArray.removeShuffle(index); in array_deserial_proc() 145 REPORTER_ASSERT(reporter, ctx.fArray.count() == count); in test_pictures() 148 REPORTER_ASSERT(reporter, ctx.fArray.count() == 0); in test_pictures()
|