/third_party/skia/src/core/ |
H A D | SkPixelRef.cpp | 8 #include "include/core/SkPixelRef.h" 18 // We never set the low bit.... see SkPixelRef::genIDIsUnique(). in ImageID() 30 SkPixelRef::SkPixelRef(int width, int height, void* pixels, size_t rowBytes) in SkPixelRef() function in SkPixelRef 41 SkPixelRef::~SkPixelRef() { in ~SkPixelRef() 46 void SkPixelRef::android_only_reset(int width, int height, size_t rowBytes) { in android_only_reset() 56 void SkPixelRef::needsNewGenID() { in needsNewGenID() 61 uint32_t SkPixelRef::getGenerationID() const { in getGenerationID() 76 void SkPixelRef [all...] |
H A D | SkMallocPixelRef.cpp | 24 sk_sp<SkPixelRef> SkMallocPixelRef::MakeAllocate(const SkImageInfo& info, size_t rowBytes) { in MakeAllocate() 47 struct PixelRef final : public SkPixelRef { in MakeAllocate() 48 PixelRef(int w, int h, void* s, size_t r) : SkPixelRef(w, h, s, r) {} in MakeAllocate() 51 return sk_sp<SkPixelRef>(new PixelRef(info.width(), info.height(), addr, rowBytes)); in MakeAllocate() 54 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithData(const SkImageInfo& info, in MakeWithData() 67 struct PixelRef final : public SkPixelRef { in MakeWithData() 70 : SkPixelRef(w, h, s, r), fData(std::move(d)) {} in MakeWithData() 73 sk_sp<SkPixelRef> pr(new PixelRef(info.width(), info.height(), pixels, rowBytes, in MakeWithData()
|
H A D | SkImagePriv.h | 15 class SkPixelRef; 63 extern const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* rasterImage);
|
H A D | SkSpecialSurface.cpp | 68 sk_sp<SkPixelRef> pr, in SkSpecialSurface_Raster() 109 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, 0); in MakeRaster()
|
H A D | SkPixelRefPriv.h | 17 sk_sp<SkPixelRef> SkMakePixelRefWithProc(int w, int h, size_t rowBytes, void* addr,
|
H A D | SkBitmap.cpp | 13 #include "include/core/SkPixelRef.h" 169 void SkBitmap::setPixelRef(sk_sp<SkPixelRef> pr, int dx, int dy) { in setPixelRef() 200 fPixelRef = p ? sk_make_sp<SkPixelRef>(this->width(), this->height(), p, rb) : nullptr; in setPixels() 265 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(correctedInfo, rowBytes); in tryAllocPixels() 285 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(correctedInfo, in tryAllocPixelsFlags() 365 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, dst->rowBytes()); in allocPixelRef()
|
H A D | SkBitmapCache.cpp | 9 #include "include/core/SkPixelRef.h" 59 void SkBitmapCache_setImmutableWithID(SkPixelRef* pr, uint32_t id) { in SkBitmapCache_setImmutableWithID()
|
/third_party/skia/tests/ |
H A D | MallocPixelRefTest.cpp | 26 sk_sp<SkPixelRef> pr( in DEF_TEST() 35 sk_sp<SkPixelRef> pr( in DEF_TEST() 44 sk_sp<SkPixelRef> pr( in DEF_TEST() 53 auto pr = sk_make_sp<SkPixelRef>(info.width(), info.height(), memory.get(), rowBytes); in DEF_TEST() 58 sk_sp<SkPixelRef> pr( in DEF_TEST() 65 sk_sp<SkPixelRef> pr( in DEF_TEST() 74 sk_sp<SkPixelRef> pr( in DEF_TEST() 87 sk_sp<SkPixelRef> pr( in DEF_TEST() 96 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeWithData(info, rowBytes, data); in DEF_TEST()
|
H A D | PixelRefTest.cpp | 11 #include "include/core/SkPixelRef.h" 73 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0); in DEF_TEST() 81 // (An SkPixelRef tree falls in the forest but there's nobody around to hear it. Do we care?) in DEF_TEST()
|
H A D | BitmapTest.cpp | 12 #include "include/core/SkPixelRef.h" 57 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, info.minRowBytes()); in test_bigalloc()
|
H A D | WritePixelsTest.cpp | 286 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, rowBytes); in alloc_row_bytes()
|
/third_party/skia/include/core/ |
H A D | SkPixelRef.h | 27 /** \class SkPixelRef 32 class SK_API SkPixelRef : public SkRefCnt { class 34 SkPixelRef(int width, int height, void* addr, size_t rowBytes); 35 ~SkPixelRef() override; 69 // We'll only call the listener if we're confident that we are the only SkPixelRef with this 74 // This can be used to invalidate caches keyed by SkPixelRef generation ID. 118 friend void SkBitmapCache_setImmutableWithID(SkPixelRef*, uint32_t);
|
H A D | SkMallocPixelRef.h | 11 #include "include/core/SkPixelRef.h" 31 SK_API sk_sp<SkPixelRef> MakeAllocate(const SkImageInfo&, size_t rowBytes); 40 SK_API sk_sp<SkPixelRef> MakeWithData(const SkImageInfo&, size_t rowBytes, sk_sp<SkData> data);
|
H A D | SkBitmap.h | 26 class SkPixelRef; 33 SkBitmap points to SkPixelRef, which describes the physical array of pixels. 34 SkImageInfo bounds may be located anywhere fully inside SkPixelRef bounds. 44 and so on cannot change. It does not affect SkPixelRef: a caller may write its 55 kUnknown_SkAlphaType, and with a width and height of zero. SkPixelRef origin is 70 @param src SkBitmap to copy SkImageInfo, and share SkPixelRef 80 @param src SkBitmap to copy SkImageInfo, and reassign SkPixelRef 87 /** Decrements SkPixelRef reference count, if SkPixelRef is not nullptr. 94 @param src SkBitmap to copy SkImageInfo, and share SkPixelRef [all...] |
/third_party/skia/docs/examples/ |
H A D | Bitmap_tryAllocPixels_4.cpp | 6 class LargePixelRef : public SkPixelRef { in REG_FIDDLE() 9 : SkPixelRef(info.width(), info.height(), storage, rowBytes) { in REG_FIDDLE() 25 sk_sp<SkPixelRef> pr = sk_sp<SkPixelRef>(new LargePixelRef(info, addr, rowBytes)); in REG_FIDDLE()
|
/third_party/skia/src/image/ |
H A D | SkSurface_Raster.cpp | 20 SkSurface_Raster(const SkImageInfo& info, sk_sp<SkPixelRef>, const SkSurfaceProps*); 70 SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, sk_sp<SkPixelRef> pr, in SkSurface_Raster() 104 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onNewImageSnapshot() 122 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onRestoreBackingMutability() 185 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, rowBytes); in MakeRaster()
|
H A D | SkImage_Raster.cpp | 11 #include "include/core/SkPixelRef.h" 91 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef() 373 const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* image) { in SkBitmapImageGetPixelRef()
|
/third_party/skia/src/gpu/ |
H A D | SkGr.h | 38 class SkPixelRef; 198 * - SkBitmap/SkPixelRef
|