Home
last modified time | relevance | path

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

12

/third_party/skia/tests/
DPixelRefTest.cpp73 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0); in DEF_TEST() local
77 pixelRef->addGenIDChangeListener(sk_make_sp<TestListener>(&count)); in DEF_TEST()
82 pixelRef->notifyPixelsChanged(); in DEF_TEST()
86 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST()
89 pixelRef->notifyPixelsChanged(); in DEF_TEST()
93 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST()
94 pixelRef->addGenIDChangeListener(sk_make_sp<TestListener>(&count)); in DEF_TEST()
95 pixelRef->notifyPixelsChanged(); in DEF_TEST()
99 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST()
101 pixelRef->addGenIDChangeListener(listener); in DEF_TEST()
[all …]
DPictureTest.cpp664 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
665 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
679 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
680 REPORTER_ASSERT(r, !immut.pixelRef()->unique()); in DEF_TEST()
684 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
685 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
/third_party/flutter/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()
/third_party/flutter/skia/src/gpu/
DGrBitmapTextureMaker.cpp33 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset); in GrBitmapTextureMaker()
66 fOriginalKey, proxyProvider->contextID(), fBitmap.pixelRef()); in refOriginalTextureProxy()
92 fBitmap.pixelRef()); in refOriginalTextureProxy()
112 GrInstallBitmapUniqueKeyInvalidator(copyKey, contextUniqueID, fBitmap.pixelRef()); in didCacheCopy()
DSkGr.cpp111 SkPixelRef* pixelRef) { in GrInstallBitmapUniqueKeyInvalidator() argument
123 pixelRef->addGenIDChangeListener(new Invalidator(key, contextUniqueID)); in GrInstallBitmapUniqueKeyInvalidator()
205 bm->pixelRef()); in GrMakeCachedImageProxy()
DSkGr.h229 SkPixelRef* pixelRef);
/third_party/flutter/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()
87 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
108 SkASSERT(fBitmap.pixelRef()); in notifyAddedToRasterCache()
109 fBitmap.pixelRef()->notifyAddedToCache(); in notifyAddedToRasterCache()
331 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()
/third_party/flutter/skia/docs/examples/
DBitmap_pixelRef.cpp9 SkDebugf("src ref %c= sub ref\n", source.pixelRef() == subset.pixelRef() ? '=' : '!'); in draw()
DBitmap_setPixelRef.cpp10 bitmap.setPixelRef(sk_ref_sp(source.pixelRef()), 5, 5); in draw()
/third_party/skia/docs/examples/
DBitmap_pixelRef.cpp9 SkDebugf("src ref %c= sub ref\n", source.pixelRef() == subset.pixelRef() ? '=' : '!'); in draw()
DBitmap_setPixelRef.cpp10 bitmap.setPixelRef(sk_ref_sp(source.pixelRef()), 5, 5); in draw()
/third_party/skia/src/image/
DSkImage_Raster.cpp31 SkASSERT(bm.pixelRef()); in is_not_subset()
32 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()
385 bitmap->setPixelRef(sk_ref_sp(fBitmap.pixelRef()), origin.x(), origin.y()); in onAsLegacyBitmap()
DSkSurface_Raster.cpp104 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onNewImageSnapshot()
122 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onRestoreBackingMutability()
131 if (SkBitmapImageGetPixelRef(cached.get()) == fBitmap.pixelRef()) { in onCopyOnWrite()
/third_party/flutter/engine/flutter/lib/ui/painting/
Dmulti_frame_codec.cc118 SkPixmap pixmap(bitmap.info(), bitmap.pixelRef()->pixels(), in GetNextFrameImage()
119 bitmap.pixelRef()->rowBytes()); in GetNextFrameImage()
/third_party/flutter/skia/include/core/
DSkBitmap.h693 SkPixelRef* pixelRef() const { return fPixelRef.get(); } in pixelRef() function
721 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy);
/third_party/skia/include/core/
DSkBitmap.h701 SkPixelRef* pixelRef() const { return fPixelRef.get(); } in pixelRef() function
733 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy);
/third_party/skia/src/core/
DSkSpecialImage.cpp190 SkASSERT(bm.pixelRef()); in SkSpecialImage_Raster()
274 if (!bm.pixelRef()) { in MakeFromRaster()
297 if (!bm.pixelRef()) { in CopyFromRaster()
DSkSpecialSurface.cpp100 return sk_make_sp<SkSpecialSurface_Raster>(bm.info(), sk_ref_sp(bm.pixelRef()), subset, props); in MakeFromBitmap()
/third_party/flutter/skia/gm/
Dimagemagnifier.cpp74 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0); in make_img()
Dninepatchstretch.cpp81 if (nullptr == fBitmap.pixelRef() || !fImage->isValid(canvas->getGrContext())) { in onDraw()
/third_party/skia/gm/
Dimagemagnifier.cpp74 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0); in make_img()
/third_party/flutter/skia/src/core/
DSkSpecialImage.cpp234 SkASSERT(bm.pixelRef()); in SkSpecialImage_Raster()
317 if (!bm.pixelRef()) { in MakeFromRaster()
340 if (!bm.pixelRef()) { in CopyFromRaster()
DSkSpecialSurface.cpp99 return sk_make_sp<SkSpecialSurface_Raster>(bm.info(), sk_ref_sp(bm.pixelRef()), subset, props); in MakeFromBitmap()

12