Home
last modified time | relevance | path

Searched refs:fStorage (Results 1 – 25 of 43) sorted by relevance

12

/external/skia/src/core/
DSkBitmapHeap.cpp91 for (int i = 0; i < fStorage.count(); i++) { in ~SkBitmapHeap()
94 if (fUnusedSlots[j] == fStorage[i]->fSlot) { in ~SkBitmapHeap()
100 fBytesAllocated -= fStorage[i]->fBytesAllocated; in ~SkBitmapHeap()
103 fBytesAllocated -= (fStorage.count() * sizeof(SkBitmapHeapEntry)); in ~SkBitmapHeap()
106 fStorage.deleteAll(); in ~SkBitmapHeap()
154 SkASSERT(fStorage.count() >= fPreferredCount); in findEntryToReplace()
158 SkBitmapHeapEntry* heapEntry = fStorage[iter->fStorageSlot]; in findEntryToReplace()
186 SkBitmapHeapEntry* heapEntry = fStorage[iter->fStorageSlot]; in freeMemoryIfPossible()
209 fBytesAllocated -= (fStorage.count() * sizeof(SkBitmapHeapEntry)); in freeMemoryIfPossible()
210 fStorage.deleteAll(); in freeMemoryIfPossible()
[all …]
DSkCachedData.cpp38 fStorage.fMalloc = data; in SkCachedData()
50 fStorage.fDM = dm; in SkCachedData()
57 sk_free(fStorage.fMalloc); in ~SkCachedData()
60 delete fStorage.fDM; in ~SkCachedData()
146 this->setData(fStorage.fMalloc); in inMutexLock()
149 if (fStorage.fDM->lock()) { in inMutexLock()
150 void* ptr = fStorage.fDM->data(); in inMutexLock()
172 fStorage.fDM->unlock(); in inMutexUnlock()
187 SkASSERT(fData == fStorage.fMalloc); in validate()
DSkRegion_path.cpp52 const Scanline* line = (Scanline*)fStorage; in dump()
87 SkRegion::RunType* fStorage; member in SkRgnBuilder
111 : fStorage(nullptr) { in SkRgnBuilder()
115 sk_free(fStorage); in ~SkRgnBuilder()
149 fStorage = (SkRegion::RunType*)sk_malloc_flags(sk_64_asS32(size), 0); in init()
150 if (nullptr == fStorage) { in init()
162 fCurrScanline = (Scanline*)fStorage; in blitH()
196 SkASSERT(fCurrXPtr - fStorage < fStorageCount); in blitH()
204 const SkRegion::RunType* line = fStorage; in computeRunCount()
213 SkASSERT((const SkRegion::RunType*)fCurrScanline - fStorage == 5); in copyToRect()
[all …]
DSkMallocPixelRef.cpp158 fStorage = storage; in SkMallocPixelRef()
163 this->setPreLocked(fStorage, rowBytes, fCTable); in SkMallocPixelRef()
181 fStorage = storage; in SkMallocPixelRef()
186 this->setPreLocked(fStorage, rowBytes, fCTable); in SkMallocPixelRef()
193 fReleaseProc(fStorage, fReleaseProcContext); in ~SkMallocPixelRef()
198 rec->fPixels = fStorage; in onNewLockPixels()
DSkTextBlob.cpp367 if (nullptr != fStorage.get()) { in ~SkTextBlobBuilder()
474 SkTextBlob::RunRecord* run = reinterpret_cast<SkTextBlob::RunRecord*>(fStorage.get() + in updateDeferredBounds()
491 SkASSERT(nullptr == fStorage.get()); in reserve()
501 fStorage.realloc(fStorageSize); in reserve()
512 SkTextBlob::RunRecord* run = reinterpret_cast<SkTextBlob::RunRecord*>(fStorage.get() + in mergeRun()
537 run = reinterpret_cast<SkTextBlob::RunRecord*>(fStorage.get() + fLastRun); in mergeRun()
549 run->validate(fStorage.get() + fStorageUsed); in mergeRun()
569 SkTextBlob::RunRecord* run = new (fStorage.get() + fStorageUsed) in allocInternal()
580 run->validate(fStorage.get() + fStorageUsed); in allocInternal()
617 SkASSERT((fRunCount > 0) == (nullptr != fStorage.get())); in build()
[all …]
DSkBitmapHeap.h164 SkASSERT(slot <= fStorage.count()); in getEntry()
168 return fStorage[slot]; in getEntry()
176 fStorage.count() - fUnusedSlots.count() == fLookupTable.count()); in count()
280 SkTDArray<SkBitmapHeapEntry*> fStorage; variable
DSkDescriptor.h149 if (size <= sizeof(fStorage)) { in reset()
150 fDesc = (SkDescriptor*)(void*)fStorage; in reset()
159 if (fDesc != (SkDescriptor*)(void*)fStorage) { in free()
171 uint32_t fStorage[(kStorageSize + 3) >> 2]; variable
DSkPerspIter.h29 const SkFixed* getXY() const { return fStorage; } in getXY()
42 SkFixed fStorage[kCount * 2]; variable
DSkPixmap.cpp284 SkAutoPixmapStorage::SkAutoPixmapStorage() : fStorage(nullptr) {} in SkAutoPixmapStorage()
303 fStorage = pixels; in tryAlloc()
314 if (!fStorage) { in detachPixelsAsData()
318 const SkData* data = SkData::NewFromMalloc(fStorage, this->getSafeSize()); in detachPixelsAsData()
319 fStorage = nullptr; in detachPixelsAsData()
DSkCachedData.h35 return kDiscardableMemory_StorageType == fStorageType ? fStorage.fDM : nullptr; in diagnostic_only_getDiscardable()
53 } fStorage; variable
DSkTSearch.cpp91 lc = fStorage; in SkAutoAsciiToLC()
111 if (fLC != fStorage) { in ~SkAutoAsciiToLC()
DSkSmallAllocator.h92 rec->fObj = static_cast<void*>(fStorage + (fStorageUsed / 4));
131 uint32_t fStorage[SkAlign4(kTotalBytes) >> 2]; variable
/external/skia/src/utils/
DSkMeshUtils.cpp17 sk_free(fStorage); in ~SkMeshIndices()
23 sk_free(fStorage); in init()
24 fStorage = nullptr; in init()
31 sk_free(fStorage); in init()
32 fStorage = nullptr; in init()
43 fStorage = sk_malloc_throw(fTexCount * sizeof(SkPoint) + in init()
45 fTex = (SkPoint*)fStorage; in init()
DSkInterpolator.cpp15 fStorage = nullptr; in SkInterpolatorBase()
21 if (fStorage) { in ~SkInterpolatorBase()
22 sk_free(fStorage); in ~SkInterpolatorBase()
31 if (fStorage) { in reset()
32 sk_free(fStorage); in reset()
33 fStorage = nullptr; in reset()
143 fStorage = sk_malloc_throw((sizeof(SkScalar) * elemCount + in reset()
145 fTimes = (SkTimeCode*) fStorage; in reset()
146 fValues = (SkScalar*) ((char*) fStorage + sizeof(SkTimeCode) * frameCount); in reset()
/external/skia/include/core/
DSkTLazy.h26 fPtr = new (fStorage.get()) T(*src); in SkTLazy()
32 fPtr = new (fStorage.get()) T(*src->get()); in SkTLazy()
54 fPtr = new (SkTCast<T*>(fStorage.get())) T(std::forward<Args>(args)...); in init()
68 fPtr = new (SkTCast<T*>(fStorage.get())) T(src); in set()
103 SkAlignedSTStorage<1, T> fStorage; variable
DSkTypes.h632 fPtr = fStorage; in SkAutoSMalloc()
641 fPtr = fStorage; in SkAutoSMalloc()
651 if (fPtr != (void*)fStorage) { in ~SkAutoSMalloc()
677 if (fPtr != (void*)fStorage) {
682 SkASSERT(fPtr != fStorage); // otherwise we lied when setting didChangeAlloc.
683 fPtr = fStorage;
691 SkASSERT((fPtr == fStorage) || fSize > kSize);
709 uint32_t fStorage[kSize >> 2]; variable
DSkMallocPixelRef.h86 void* getAddr() const { return fStorage; } in getAddr()
115 void* fStorage; variable
/external/icu/icu4c/source/i18n/
Ddigitlst.cpp72 fContext.digits = fStorage.getCapacity(); in DigitList()
74 fDecNumber = fStorage.getAlias(); in DigitList()
91 fDecNumber = fStorage.getAlias(); in DigitList()
106 if (other.fStorage.getCapacity() > fStorage.getCapacity()) { in operator =()
107 fDecNumber = fStorage.resize(other.fStorage.getCapacity()); in operator =()
111 fContext.digits = fStorage.getCapacity(); in operator =()
789 decNumber *t = fStorage.resize(numDigits, fStorage.getCapacity()); in set()
910 decNumber *newBuffer = fStorage.resize(requestedCapacity, fStorage.getCapacity()); in ensureCapacity()
/external/skia/include/private/
DSkTemplates.h200 SkASSERT((T*) fStorage != fArray); in reset()
212 fArray = (T*) fStorage; in reset()
257 char fStorage[kCount * sizeof(T)]; variable
476 void* get() { return fStorage.get(); } in get()
477 const void* get() const { return fStorage.get(); } in get()
479 SkAlignedSStorage<sizeof(T)*N> fStorage;
DSkTArray.h483 SkSTArray() : INHERITED(&fStorage) { in SkSTArray()
487 : INHERITED(array, &fStorage) { in SkSTArray()
491 : INHERITED(array, &fStorage) { in SkSTArray()
499 : INHERITED(array, count, &fStorage) { in SkSTArray()
512 SkAlignedSTStorage<N,T> fStorage;
/external/skia/src/gpu/
DGrYUVProvider.cpp31 SkAutoMalloc fStorage; member in __anonc7ccbaff0111::YUVScoper
63 fStorage.reset(totalSize); in init()
64 planes[0] = fStorage.get(); in init()
/external/skia/src/effects/
DSkTableColorFilter.cpp24 uint8_t* dst = fStorage; in SkTable_ColorFilter()
74 uint8_t fStorage[256 * 4]; member in SkTable_ColorFilter
118 const uint8_t* table = fStorage; in filterSpan()
162 const uint8_t* table = fStorage; in toString()
203 size_t size = SkPackBits::Pack8(fStorage, count * 256, storage, in flatten()
270 memcpy(bitmapPixels, fStorage + offset, 256); in asComponentTable()
301 const uint8_t* table = fStorage; in newComposed()
DSkMergeImageFilter.cpp21 if (size <= sizeof(fStorage)) { in initAllocModes()
22 fModes = SkTCast<uint8_t*>(fStorage); in initAllocModes()
53 if (fModes != SkTCast<uint8_t*>(fStorage)) { in ~SkMergeImageFilter()
/external/skia/src/animator/
DSkOperandIterpolator.cpp28 fStorage = sk_malloc_throw((sizeof(SkOperand) * elemCount + sizeof(SkTimeCode)) * frameCount); in reset()
29 fTimes = (SkTimeCode*) fStorage; in reset()
30 fValues = (SkOperand*) ((char*) fStorage + sizeof(SkTimeCode) * frameCount); in reset()
/external/skia/src/codec/
DSkJpegCodec.cpp162 fStorage.free(); in onRewind()
392 fStorage.reset(get_row_bytes(fDecoderMgr->dinfo())); in initializeSwizzler()
393 fSrcRow = fStorage.get(); in initializeSwizzler()
398 SkASSERT(!fSwizzler || (fSrcRow && fStorage.get() == fSrcRow)); in getSampler()
530 fStorage.reset(get_row_bytes(fDecoderMgr->dinfo())); in onSkipScanlines()
531 fSrcRow = fStorage.get(); in onSkipScanlines()

12