/external/chromium_org/third_party/skia/include/core/ |
D | SkTDArray.h | 19 fArray = NULL; in SkTDArray() 28 fArray = NULL; in SkTDArray() 33 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray() 35 fData = (ArrayT*)fArray; in SkTDArray() 37 memcpy(fArray, src, sizeof(T) * count); in SkTDArray() 43 fArray = NULL; in SkTDArray() 47 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray() 51 sk_free(fArray); in ~SkTDArray() 57 SkTDArray<T> tmp(src.fArray, src.fCount); 60 memcpy(fArray, src.fArray, sizeof(T) * src.fCount); [all …]
|
D | SkTemplates.h | 175 SkAutoTDeleteArray(T array[]) : fArray(array) {} 176 ~SkAutoTDeleteArray() { SkDELETE_ARRAY(fArray); } 178 T* get() const { return fArray; } 179 void free() { SkDELETE_ARRAY(fArray); fArray = NULL; } 180 T* detach() { T* array = fArray; fArray = NULL; return array; } 183 if (fArray != array) { 184 SkDELETE_ARRAY(fArray); 185 fArray = array; 190 T* fArray; 198 fArray = NULL; [all …]
|
D | SkTDict.h | 20 fArray.reset(); in reset() 24 int count() const { return fArray.count(); } in count() 36 fArray[index].fValue = value; in set() 39 Pair* pair = fArray.insert(~index); in set() 66 *value = fArray[index].fValue; in find() 74 const Pair* end = fArray.end(); in findKey() 75 for (const Pair* pair = fArray.begin(); pair < end; pair++) { in findKey() 104 fIter = dict.fArray.begin(); in Iter() 105 fStop = dict.fArray.end(); in Iter() 125 SkTDArray<Pair> fArray; [all …]
|
/external/skia/include/core/ |
D | SkTDArray.h | 19 fArray = NULL; in SkTDArray() 28 fArray = NULL; in SkTDArray() 33 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray() 35 fData = (ArrayT*)fArray; in SkTDArray() 37 memcpy(fArray, src, sizeof(T) * count); in SkTDArray() 43 fArray = NULL; in SkTDArray() 47 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray() 51 sk_free(fArray); in ~SkTDArray() 57 SkTDArray<T> tmp(src.fArray, src.fCount); 60 memcpy(fArray, src.fArray, sizeof(T) * src.fCount); [all …]
|
D | SkTemplates.h | 175 SkAutoTDeleteArray(T array[]) : fArray(array) {} 176 ~SkAutoTDeleteArray() { SkDELETE_ARRAY(fArray); } 178 T* get() const { return fArray; } 179 void free() { SkDELETE_ARRAY(fArray); fArray = NULL; } 180 T* detach() { T* array = fArray; fArray = NULL; return array; } 183 if (fArray != array) { 184 SkDELETE_ARRAY(fArray); 185 fArray = array; 190 T* fArray; 198 fArray = NULL; [all …]
|
D | SkTDict.h | 20 fArray.reset(); in reset() 24 int count() const { return fArray.count(); } in count() 36 fArray[index].fValue = value; in set() 39 Pair* pair = fArray.insert(~index); in set() 66 *value = fArray[index].fValue; in find() 74 const Pair* end = fArray.end(); in findKey() 75 for (const Pair* pair = fArray.begin(); pair < end; pair++) { in findKey() 104 fIter = dict.fArray.begin(); in Iter() 105 fStop = dict.fArray.end(); in Iter() 125 SkTDArray<Pair> fArray; [all …]
|
/external/skia/src/animator/ |
D | SkTypedArray.cpp | 32 fArray = NULL; in SkDS32Array() 41 fArray = NULL; in SkDS32Array() 45 SkDS32Array tmp(src.fArray, src.fCount); in SkDS32Array() 54 fArray = NULL; in SkDS32Array() 60 fArray = (int32_t*)sk_malloc_throw(count * sizeof(int32_t)); in SkDS32Array() 62 fData = (int32_t (*)[kDebugArraySize]) fArray; in SkDS32Array() 64 memcpy(fArray, src, sizeof(int32_t) * count); in SkDS32Array() 75 SkDS32Array tmp(src.fArray, src.fCount); in operator =() 80 memcpy(fArray, src.fArray, sizeof(int32_t) * src.fCount); in operator =() 90 (a.fCount == 0 || !memcmp(a.fArray, b.fArray, a.fCount * sizeof(int32_t))); in operator ==() [all …]
|
D | SkTDArray_Experimental.h | 60 memmove(fArray + index, fArray + index + count, sizeof(int32_t) * (fCount - index)); 65 if (fArray) in reset() 67 sk_free(fArray); in reset() 68 fArray = NULL; in reset() 94 int32_t* fArray; variable 100 #define SYNC() fTData = (T (*)[kDebugArraySize]) fArray 109 ~SkTDS32Array() { sk_free(fArray); } in ~SkTDS32Array() 110 …tor[](int index) const { SYNC(); SkASSERT((unsigned)index < fCount); return ((T*) fArray)[index]; } 118 T* begin() const { SYNC(); return (T*) fArray; } in begin() 119 T* end() const { return (T*) (fArray ? fArray + fCount : NULL); } in end()
|
/external/chromium_org/third_party/skia/src/animator/ |
D | SkTypedArray.cpp | 32 fArray = NULL; in SkDS32Array() 41 fArray = NULL; in SkDS32Array() 45 SkDS32Array tmp(src.fArray, src.fCount); in SkDS32Array() 54 fArray = NULL; in SkDS32Array() 60 fArray = (int32_t*)sk_malloc_throw(count * sizeof(int32_t)); in SkDS32Array() 62 fData = (int32_t (*)[kDebugArraySize]) fArray; in SkDS32Array() 64 memcpy(fArray, src, sizeof(int32_t) * count); in SkDS32Array() 75 SkDS32Array tmp(src.fArray, src.fCount); in operator =() 80 memcpy(fArray, src.fArray, sizeof(int32_t) * src.fCount); in operator =() 90 (a.fCount == 0 || !memcmp(a.fArray, b.fArray, a.fCount * sizeof(int32_t))); in operator ==() [all …]
|
D | SkTDArray_Experimental.h | 60 memmove(fArray + index, fArray + index + count, sizeof(int32_t) * (fCount - index)); 65 if (fArray) in reset() 67 sk_free(fArray); in reset() 68 fArray = NULL; in reset() 94 int32_t* fArray; variable 100 #define SYNC() fTData = (T (*)[kDebugArraySize]) fArray 109 ~SkTDS32Array() { sk_free(fArray); } in ~SkTDS32Array() 110 …tor[](int index) const { SYNC(); SkASSERT((unsigned)index < fCount); return ((T*) fArray)[index]; } 118 T* begin() const { SYNC(); return (T*) fArray; } in begin() 119 T* end() const { return (T*) (fArray ? fArray + fCount : NULL); } in end()
|
/external/skia/bench/ |
D | ScalarBench.cpp | 57 init9(fArray); in FloatComparisonBench() 64 junk ^= (fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f); in performTest() 65 junk ^= (fArray[2] != 0.0f || fArray[5] != 0.0f); in performTest() 68 float fArray[9]; member in FloatComparisonBench 76 init9(fArray); in ForcedIntComparisonBench() 83 junk ^= (SkScalarAs2sCompliment(fArray[6]) | in performTest() 84 SkScalarAs2sCompliment(fArray[7]) | in performTest() 85 (SkScalarAs2sCompliment(fArray[8]) - kPersp1Int)); in performTest() 86 junk ^= (SkScalarAs2sCompliment(fArray[2]) | in performTest() 87 SkScalarAs2sCompliment(fArray[5])); in performTest() [all …]
|
D | MatrixBench.cpp | 220 fArray[0] = (float) fRnd.nextS(); in GetTypeMatrixBench() 221 fArray[1] = (float) fRnd.nextS(); in GetTypeMatrixBench() 222 fArray[2] = (float) fRnd.nextS(); in GetTypeMatrixBench() 223 fArray[3] = (float) fRnd.nextS(); in GetTypeMatrixBench() 224 fArray[4] = (float) fRnd.nextS(); in GetTypeMatrixBench() 225 fArray[5] = (float) fRnd.nextS(); in GetTypeMatrixBench() 226 fArray[6] = (float) fRnd.nextS(); in GetTypeMatrixBench() 227 fArray[7] = (float) fRnd.nextS(); in GetTypeMatrixBench() 228 fArray[8] = (float) fRnd.nextS(); in GetTypeMatrixBench() 235 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest() [all …]
|
/external/chromium_org/third_party/skia/bench/ |
D | ScalarBench.cpp | 57 init9(fArray); in FloatComparisonBench() 64 junk ^= (fArray[6] != 0.0f || fArray[7] != 0.0f || fArray[8] != 1.0f); in performTest() 65 junk ^= (fArray[2] != 0.0f || fArray[5] != 0.0f); in performTest() 68 float fArray[9]; member in FloatComparisonBench 76 init9(fArray); in ForcedIntComparisonBench() 83 junk ^= (SkScalarAs2sCompliment(fArray[6]) | in performTest() 84 SkScalarAs2sCompliment(fArray[7]) | in performTest() 85 (SkScalarAs2sCompliment(fArray[8]) - kPersp1Int)); in performTest() 86 junk ^= (SkScalarAs2sCompliment(fArray[2]) | in performTest() 87 SkScalarAs2sCompliment(fArray[5])); in performTest() [all …]
|
D | MatrixBench.cpp | 220 fArray[0] = (float) fRnd.nextS(); in GetTypeMatrixBench() 221 fArray[1] = (float) fRnd.nextS(); in GetTypeMatrixBench() 222 fArray[2] = (float) fRnd.nextS(); in GetTypeMatrixBench() 223 fArray[3] = (float) fRnd.nextS(); in GetTypeMatrixBench() 224 fArray[4] = (float) fRnd.nextS(); in GetTypeMatrixBench() 225 fArray[5] = (float) fRnd.nextS(); in GetTypeMatrixBench() 226 fArray[6] = (float) fRnd.nextS(); in GetTypeMatrixBench() 227 fArray[7] = (float) fRnd.nextS(); in GetTypeMatrixBench() 228 fArray[8] = (float) fRnd.nextS(); in GetTypeMatrixBench() 235 fMatrix.setAll(fArray[0], fArray[1], fArray[2], in performTest() [all …]
|
/external/skia/src/core/ |
D | SkTDynamicHash.h | 25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(NULL) { in SkTDynamicHash() 30 sk_free(fArray); in ~SkTDynamicHash() 54 T* current() const { return fHash->fArray[fCurrentIndex]; } in current() 66 T* candidate = fArray[index]; in find() 103 const T* candidate = fArray[index]; in countCollisions() 131 if (Deleted() == fArray[i]) { in validate() 133 } else if (Empty() != fArray[i]) { in validate() 135 SKTDYNAMICHASH_CHECK(NULL != this->find(GetKey(*fArray[i]))); in validate() 146 if (Empty() == fArray[i] || Deleted() == fArray[i]) { in validate() 150 if (Empty() == fArray[j] || Deleted() == fArray[j]) { in validate() [all …]
|
D | SkPictureFlat.cpp | 21 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(NULL) {} in SkTypefacePlayback() 29 SkASSERT(fArray[i]); in reset() 30 fArray[i]->unref(); in reset() 32 SkDELETE_ARRAY(fArray); in reset() 36 fArray = SkNEW_ARRAY(SkRefCnt*, fCount); in reset() 37 rec->copyToArray(fArray); in reset() 39 fArray[i]->ref(); in reset() 43 fArray = NULL; in reset() 51 fArray = SkNEW_ARRAY(SkRefCnt*, count); in setCount() 52 sk_bzero(fArray, count * sizeof(SkRefCnt*)); in setCount() [all …]
|
D | SkTypefaceCache.cpp | 19 const Rec* curr = fArray.begin(); in ~SkTypefaceCache() 20 const Rec* stop = fArray.end(); in ~SkTypefaceCache() 34 if (fArray.count() >= TYPEFACE_CACHE_LIMIT) { in add() 38 Rec* rec = fArray.append(); in add() 50 const Rec* curr = fArray.begin(); in findByID() 51 const Rec* stop = fArray.end(); in findByID() 62 const Rec* curr = fArray.begin(); in findByProcAndRef() 63 const Rec* stop = fArray.end(); in findByProcAndRef() 82 int count = fArray.count(); in purge() 85 SkTypeface* face = fArray[i].fFace; in purge() [all …]
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkTDynamicHash.h | 25 SkTDynamicHash() : fCount(0), fDeleted(0), fCapacity(0), fArray(NULL) { in SkTDynamicHash() 30 sk_free(fArray); in ~SkTDynamicHash() 54 T* current() const { return fHash->fArray[fCurrentIndex]; } in current() 66 T* candidate = fArray[index]; in find() 103 const T* candidate = fArray[index]; in countCollisions() 131 if (Deleted() == fArray[i]) { in validate() 133 } else if (Empty() != fArray[i]) { in validate() 135 SKTDYNAMICHASH_CHECK(NULL != this->find(GetKey(*fArray[i]))); in validate() 146 if (Empty() == fArray[i] || Deleted() == fArray[i]) { in validate() 150 if (Empty() == fArray[j] || Deleted() == fArray[j]) { in validate() [all …]
|
D | SkPictureFlat.cpp | 21 SkTypefacePlayback::SkTypefacePlayback() : fCount(0), fArray(NULL) {} in SkTypefacePlayback() 29 SkASSERT(fArray[i]); in reset() 30 fArray[i]->unref(); in reset() 32 SkDELETE_ARRAY(fArray); in reset() 36 fArray = SkNEW_ARRAY(SkRefCnt*, fCount); in reset() 37 rec->copyToArray(fArray); in reset() 39 fArray[i]->ref(); in reset() 43 fArray = NULL; in reset() 51 fArray = SkNEW_ARRAY(SkRefCnt*, count); in setCount() 52 sk_bzero(fArray, count * sizeof(SkRefCnt*)); in setCount() [all …]
|
D | SkTypefaceCache.cpp | 19 const Rec* curr = fArray.begin(); in ~SkTypefaceCache() 20 const Rec* stop = fArray.end(); in ~SkTypefaceCache() 34 if (fArray.count() >= TYPEFACE_CACHE_LIMIT) { in add() 38 Rec* rec = fArray.append(); in add() 50 const Rec* curr = fArray.begin(); in findByID() 51 const Rec* stop = fArray.end(); in findByID() 62 const Rec* curr = fArray.begin(); in findByProcAndRef() 63 const Rec* stop = fArray.end(); in findByProcAndRef() 82 int count = fArray.count(); in purge() 85 SkTypeface* face = fArray[i].fFace; in purge() [all …]
|
D | SkLazyPtr.h | 127 T* ptr = (T*)sk_acquire_load(&fArray[i]); 128 return ptr ? ptr : try_cas<T*, Destroy>(&fArray[i], Create(i)); 134 Destroy((T*)fArray[i]); in ~SkLazyPtrArray() 135 fArray[i] = NULL; in ~SkLazyPtrArray() 141 void* fArray[N];
|
/external/chromium_org/third_party/skia/include/utils/ |
D | SkJSON.h | 242 return fArray.fObjects; in objects() 246 return fArray.fArrays; in arrays() 250 return fArray.fStrings; in strings() 254 return fArray.fInts; in ints() 258 return fArray.fFloats; in floats() 262 return fArray.fBools; in bools() 276 } fArray; variable
|
D | SkPictureUtils.h | 51 PixelRefAndRect *dst = fArray.append(); in add() 58 for (int i = 0; i < fArray.count(); ++i) { in query() 59 if (SkRect::Intersects(fArray[i].fRect, queryRect)) { in query() 60 *result->append() = fArray[i].fPixelRef; in query() 71 SkTDArray<PixelRefAndRect> fArray; variable
|
/external/skia/include/utils/ |
D | SkJSON.h | 242 return fArray.fObjects; in objects() 246 return fArray.fArrays; in arrays() 250 return fArray.fStrings; in strings() 254 return fArray.fInts; in ints() 258 return fArray.fFloats; in floats() 262 return fArray.fBools; in bools() 276 } fArray; variable
|
D | SkPictureUtils.h | 51 PixelRefAndRect *dst = fArray.append(); in add() 58 for (int i = 0; i < fArray.count(); ++i) { in query() 59 if (SkRect::Intersects(fArray[i].fRect, queryRect)) { in query() 60 *result->append() = fArray[i].fPixelRef; in query() 71 SkTDArray<PixelRefAndRect> fArray; variable
|