Home
last modified time | relevance | path

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

12

/external/skqp/tests/
DPixelRefTest.cpp72 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0); 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 …]
DPictureTest.cpp726 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
727 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
741 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
742 REPORTER_ASSERT(r, !immut.pixelRef()->unique()); in DEF_TEST()
746 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
747 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
/external/skia/tests/
DPixelRefTest.cpp72 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0); 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 …]
DPictureTest.cpp725 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
726 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
740 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
741 REPORTER_ASSERT(r, !immut.pixelRef()->unique()); in DEF_TEST()
745 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
746 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
/external/skia/src/gpu/
DGrBitmapTextureMaker.cpp30 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset); in GrBitmapTextureMaker()
65 fOriginalKey, proxyProvider->contextID(), fBitmap.pixelRef()); in refOriginalTextureProxy()
91 fBitmap.pixelRef()); in refOriginalTextureProxy()
111 GrInstallBitmapUniqueKeyInvalidator(copyKey, contextUniqueID, fBitmap.pixelRef()); in didCacheCopy()
DSkGr.cpp135 SkPixelRef* pixelRef) { in GrInstallBitmapUniqueKeyInvalidator() argument
147 pixelRef->addGenIDChangeListener(new Invalidator(key, contextUniqueID)); in GrInstallBitmapUniqueKeyInvalidator()
252 bm->pixelRef()); in GrMakeCachedImageProxy()
DSkGr.h227 SkPixelRef* pixelRef);
/external/skqp/src/gpu/
DGrBitmapTextureMaker.cpp29 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset); in GrBitmapTextureMaker()
64 fOriginalKey, proxyProvider->contextUniqueID(), fBitmap.pixelRef()); in refOriginalTextureProxy()
90 fBitmap.pixelRef()); in refOriginalTextureProxy()
110 GrInstallBitmapUniqueKeyInvalidator(copyKey, contextUniqueID, fBitmap.pixelRef()); in didCacheCopy()
DSkGr.cpp133 SkPixelRef* pixelRef) { in GrInstallBitmapUniqueKeyInvalidator() argument
145 pixelRef->addGenIDChangeListener(new Invalidator(key, contextUniqueID)); in GrInstallBitmapUniqueKeyInvalidator()
250 bm->pixelRef()); in GrMakeCachedImageProxy()
DSkGr.h225 SkPixelRef* pixelRef);
/external/skia/src/image/
DSkImage_Raster.cpp29 SkASSERT(bm.pixelRef()); in is_not_subset()
30 SkISize dim = SkISize::Make(bm.pixelRef()->width(), bm.pixelRef()->height()); in is_not_subset()
91 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
112 SkASSERT(fBitmap.pixelRef()); in notifyAddedToRasterCache()
113 fBitmap.pixelRef()->notifyAddedToCache(); in notifyAddedToRasterCache()
335 bitmap->setPixelRef(sk_ref_sp(fBitmap.pixelRef()), origin.x(), origin.y()); in onAsLegacyBitmap()
DSkSurface_Raster.cpp115 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onNewImageSnapshot()
133 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onRestoreBackingMutability()
142 if (SkBitmapImageGetPixelRef(cached.get()) == fBitmap.pixelRef()) { in onCopyOnWrite()
/external/skqp/src/image/
DSkImage_Raster.cpp29 SkASSERT(bm.pixelRef()); in is_not_subset()
30 SkISize dim = SkISize::Make(bm.pixelRef()->width(), bm.pixelRef()->height()); in is_not_subset()
91 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
111 SkASSERT(fBitmap.pixelRef()); in notifyAddedToRasterCache()
112 fBitmap.pixelRef()->notifyAddedToCache(); in notifyAddedToRasterCache()
332 bitmap->setPixelRef(sk_ref_sp(fBitmap.pixelRef()), origin.x(), origin.y()); in onAsLegacyBitmap()
DSkSurface_Raster.cpp115 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onNewImageSnapshot()
133 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onRestoreBackingMutability()
142 if (SkBitmapImageGetPixelRef(cached.get()) == fBitmap.pixelRef()) { in onCopyOnWrite()
/external/skia/include/core/
DSkBitmap.h709 SkPixelRef* pixelRef() const { return fPixelRef.get(); } in pixelRef() function
737 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy);
/external/skqp/include/core/
DSkBitmap.h727 SkPixelRef* pixelRef() const { return fPixelRef.get(); } in pixelRef() function
755 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy);
/external/skqp/src/core/
DSkSpecialImage.cpp220 SkASSERT(bm.pixelRef()); in SkSpecialImage_Raster()
326 if (!bm.pixelRef()) { in MakeFromRaster()
349 if (!bm.pixelRef()) { in CopyFromRaster()
DSkSpecialSurface.cpp99 return sk_make_sp<SkSpecialSurface_Raster>(bm.info(), sk_ref_sp(bm.pixelRef()), subset, props); in MakeFromBitmap()
/external/skia/src/core/
DSkSpecialImage.cpp222 SkASSERT(bm.pixelRef()); in SkSpecialImage_Raster()
325 if (!bm.pixelRef()) { in MakeFromRaster()
348 if (!bm.pixelRef()) { in CopyFromRaster()
DSkSpecialSurface.cpp99 return sk_make_sp<SkSpecialSurface_Raster>(bm.info(), sk_ref_sp(bm.pixelRef()), subset, props); in MakeFromBitmap()
DSkBitmapCache.cpp143 SkBitmapCache_setImmutableWithID(bitmap->pixelRef(), fPrUniqueID); in install()
/external/skqp/gm/
Dimagemagnifier.cpp62 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0); in make_img()
Dninepatchstretch.cpp70 if (nullptr == fBitmap.pixelRef() || !fImage->isValid(canvas->getGrContext())) { in onDraw()
/external/skia/gm/
Dimagemagnifier.cpp62 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0); in make_img()
Dninepatchstretch.cpp70 if (nullptr == fBitmap.pixelRef() || !fImage->isValid(canvas->getGrContext())) { in onDraw()

12