Home
last modified time | relevance | path

Searched refs:pixelRef (Results 1 - 15 of 15) sorted by relevance

/third_party/skia/tests/
H A 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()
80 // No one has looked at our pixelRef's generation ID, so invalidating it doesn't make sense. 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 in DEF_TEST()
[all...]
H A 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/skia/docs/examples/
H A DBitmap_pixelRef.cpp9 SkDebugf("src ref %c= sub ref\n", source.pixelRef() == subset.pixelRef() ? '=' : '!'); in REG_FIDDLE()
H A DBitmap_setPixelRef.cpp10 bitmap.setPixelRef(sk_ref_sp(source.pixelRef()), 5, 5); in REG_FIDDLE()
/third_party/skia/src/image/
H A 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()
111 // data (eg mips) tied to the lifetime of the underlying pixelRef.
112 SkASSERT(fBitmap.pixelRef());
113 fBitmap.pixelRef()->notifyAddedToCache();
385 bitmap->setPixelRef(sk_ref_sp(fBitmap.pixelRef()), origin.x(), origin.y()); in onAsLegacyBitmap()
409 // our pixelRef. That doesn't work (without more invasive logic), because the image gets its in onReinterpretColorSpace()
410 // gen ID from the bitmap, which gets it from the pixelRef in onReinterpretColorSpace()
[all...]
H A 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()
H A DSkImage.cpp471 if (!bm.pixelRef()) { in MakeFromBitmap()
/third_party/skia/src/core/
H A DSkSpecialImage.cpp190 SkASSERT(bm.pixelRef()); in SkSpecialImage_Raster()
274 if (!bm.pixelRef()) { in MakeFromRaster()
297 if (!bm.pixelRef()) { in CopyFromRaster()
H A DSkSpecialSurface.cpp100 return sk_make_sp<SkSpecialSurface_Raster>(bm.info(), sk_ref_sp(bm.pixelRef()), subset, props); in MakeFromBitmap()
H A DSkBitmapCache.cpp143 SkBitmapCache_setImmutableWithID(bitmap->pixelRef(), fPrUniqueID); in install()
/third_party/skia/include/core/
H A DSkBitmap.h135 May be less than pixelRef().width(). Will not exceed pixelRef().width() less
144 Maybe be less than pixelRef().height(). Will not exceed pixelRef().height() less
701 SkPixelRef* pixelRef() const { return fPixelRef.get(); } in pixelRef() function in SkBitmap
718 /** Replaces pixelRef and origin in SkBitmap. dx and dy specify the offset
727 @param pixelRef SkPixelRef describing pixel address and rowBytes()
733 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy);
/third_party/skia/gm/
H A Dimagemagnifier.cpp74 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0); in make_img()
/third_party/skia/src/gpu/
H A DSkGr.cpp182 GrMakeKeyFromImageID(&key, bitmap.pixelRef()->getGenerationID(), subset); in GrMakeCachedBitmapProxyView()
189 bitmap.pixelRef()->addGenIDChangeListener(std::move(listener)); in GrMakeCachedBitmapProxyView()
/third_party/skia/src/android/
H A DSkAnimatedImage.cpp117 if (fBitmap.pixelRef()->unique()) { in init()
/third_party/skia/tools/
H A DToolUtils.cpp187 result.setPixelRef(sk_ref_sp(bitmap.pixelRef()), 0, 0); in create_string_bitmap()

Completed in 14 milliseconds