Home
last modified time | relevance | path

Searched refs:pixelRef (Results 1 – 25 of 28) sorted by relevance

12

/external/skia/tests/
DPixelRefTest.cpp72 SkAutoTUnref<SkPixelRef> pixelRef(SkMallocPixelRef::NewAllocate(info, 0, nullptr)); in DEF_TEST() local
76 pixelRef->addGenIDChangeListener(new TestListener(&count)); in DEF_TEST()
81 pixelRef->notifyPixelsChanged(); in DEF_TEST()
85 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST()
88 pixelRef->notifyPixelsChanged(); in DEF_TEST()
92 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST()
93 pixelRef->addGenIDChangeListener(new TestListener(&count)); in DEF_TEST()
94 pixelRef->notifyPixelsChanged(); in DEF_TEST()
98 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST()
99 pixelRef->addGenIDChangeListener(nullptr); in DEF_TEST()
[all …]
DSkResourceCacheTest.cpp55 SkPixelRef* cachedPR = cachedBitmap.pixelRef(); in DEF_TEST()
163 SkBitmapCache::Add(src[i].pixelRef(), subset, dst[i], cache); in test_bitmap_notify()
213 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, in testBitmapCache_discarded_bitmap()
239 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, in testBitmapCache_discarded_bitmap()
DPictureTest.cpp1353 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
1354 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
1368 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
1369 REPORTER_ASSERT(r, !immut.pixelRef()->unique()); in DEF_TEST()
1373 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
1374 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
/external/skia/src/gpu/
DGrImageIDTextureAdjuster.cpp41 GrInstallBitmapUniqueKeyInvalidator(copyKey, fBmp->pixelRef()); in didCacheCopy()
80 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset); in GrBitmapTextureMaker()
97 GrInstallBitmapUniqueKeyInvalidator(fOriginalKey, fBitmap.pixelRef()); in refOriginalTexture()
109 GrInstallBitmapUniqueKeyInvalidator(copyKey, fBitmap.pixelRef()); in didCacheCopy()
DSkGr.cpp190 SkPixelRef* pixelRef = bm.pixelRef(); in create_texture_from_yuv() local
191 if ((nullptr == pixelRef) || in create_texture_from_yuv()
192 (pixelRef->info().width() != bm.info().width()) || in create_texture_from_yuv()
193 (pixelRef->info().height() != bm.info().height())) { in create_texture_from_yuv()
197 PixelRef_GrYUVProvider provider(pixelRef); in create_texture_from_yuv()
203 SkAutoTUnref<SkData> data(bm.pixelRef()->refEncodedData()); in load_etc1_texture()
275 void GrInstallBitmapUniqueKeyInvalidator(const GrUniqueKey& key, SkPixelRef* pixelRef) { in GrInstallBitmapUniqueKeyInvalidator() argument
285 pixelRef->addGenIDChangeListener(new Invalidator(key)); in GrInstallBitmapUniqueKeyInvalidator()
DSkGrPixelRef.cpp94 SkGrPixelRef* pixelRef = new SkGrPixelRef(info, dst); in copy_to_new_texture_pixelref() local
96 return pixelRef; in copy_to_new_texture_pixelref()
DSkGrPriv.h44 void GrInstallBitmapUniqueKeyInvalidator(const GrUniqueKey& key, SkPixelRef* pixelRef);
/external/skia/src/image/
DSkImage_Raster.cpp79 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
88 if (bm.pixelRef()->isPreLocked()) { in SkImage_Raster()
97 return fBitmap.pixelRef() && fBitmap.pixelRef()->isLazyGenerated(); in onIsLazyGenerated()
154 SkPixelRef* pr = fBitmap.pixelRef(); in onRefEncoded()
289 bitmap->setPixelRef(fBitmap.pixelRef(), fBitmap.pixelRefOrigin()); in onAsLegacyBitmap()
DSkSurface_Raster.cpp125 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onNewImageSnapshot()
139 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onRestoreBackingMutability()
148 if (SkBitmapImageGetPixelRef(cached) == fBitmap.pixelRef()) { in onCopyOnWrite()
DSkImage_Gpu.cpp66 dst->pixelRef()->setImmutableWithID(this->uniqueID()); in getROPixels()
77 bitmap->pixelRef()->setImmutableWithID(this->uniqueID()); in asBitmapForImageFilters()
DSkImage.cpp282 SkPixelRef* pr = bm.pixelRef(); in NewFromBitmap()
/external/skia/src/core/
DSkBitmap.cpp747 SkPixelRef* pixelRef = fPixelRef->deepCopy(this->colorType(), this->profileType(), &subset); in extractSubset() local
748 if (pixelRef != nullptr) { in extractSubset()
753 dst.setPixelRef(pixelRef)->unref(); in extractSubset()
858 if (dst->pixelRef() && dst->pixelRef()->info() == fPixelRef->info()) { in copyTo()
859 dst->pixelRef()->cloneGenID(*fPixelRef); in copyTo()
906 SkPixelRef* dstPixelRef = tmpDst.pixelRef(); in copyTo()
927 SkPixelRef* pixelRef = fPixelRef->deepCopy(dstCT, dstPT, nullptr); in deepCopyTo() local
928 if (pixelRef) { in deepCopyTo()
933 SkASSERT(fPixelRef->info() == pixelRef->info()); in deepCopyTo()
934 pixelRef->cloneGenID(*fPixelRef); in deepCopyTo()
[all …]
DSkBitmapProvider.cpp29 if (nullptr == fBitmap.pixelRef()) { in validForDrawing()
75 fBitmap.pixelRef()->notifyAddedToCache(); in notifyAddedToCache()
DSkWriteBuffer.cpp186 SkPixelRef* pixelRef = bitmap.pixelRef(); in writeBitmap() local
187 if (pixelRef) { in writeBitmap()
189 SkAutoDataUnref existingData(pixelRef->refEncodedData()); in writeBitmap()
DSkBitmapCache.cpp40 if (!(bm.pixelRef())) { in get_bounds_from_bitmap()
143 return fBitmap.pixelRef()->diagnostic_only_getDiscardable(); in diagnostic_only_getDiscardable()
303 src.pixelRef()->notifyAddedToCache(); in AddAndRef()
DSkBitmapDevice.cpp123 SkASSERT(!fBitmap.pixelRef()); in setNewSize()
288 if(bitmap.pixelRef()->getTexture()) { in drawBitmapRect()
291 bitmap.pixelRef()->readPixels(&tmpBitmap, kN32_SkColorType, &srcIR); in drawBitmapRect()
DSkPictureRecord.cpp793 if (a.pixelRef() == b.pixelRef()) { in equivalent()
798 if (!a.pixelRef() || !b.pixelRef()) { in equivalent()
803 SkAutoTUnref<SkData> encA(a.pixelRef()->refEncodedData()), in equivalent()
804 encB(b.pixelRef()->refEncodedData()); in equivalent()
DSkImageCacherator.cpp138 bitmap->pixelRef()->setImmutableWithID(fUniqueID); in tryLockAsBitmap()
180 bitmap->pixelRef()->setImmutableWithID(fUniqueID); in lockAsBitmap()
DSkSpecialSurface.cpp97 return new SkSpecialSurface_Raster(proxy, bm.pixelRef(), subset, props); in NewFromBitmap()
DSkSpecialImage.cpp180 if (bm.pixelRef()->isPreLocked()) { in SkSpecialImage_Raster()
/external/skia/src/images/
DSkImageDecoder_ktx.cpp263 if (!bitmap.pixelRef()) { in onEncode()
266 SkAutoDataUnref data(bitmap.pixelRef()->refEncodedData()); in onEncode()
DSkImageDecoder.cpp155 if (SkPixelRef* pr = bm->pixelRef()) { in DecodeFile()
/external/skia/gm/
Dninepatchstretch.cpp73 if (nullptr == fBitmap.pixelRef()) { in onDraw()
/external/skia/src/android/
DSkBitmapRegionCodec.cpp133 SkPixelRef* pr = SkRef(bitmap->pixelRef()); in decodeRegion()
/external/skia/include/core/
DSkBitmapDevice.h133 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()

12