/external/skia/src/core/ |
D | SkPixelRef.cpp | 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::addGenIDChangeListener(sk_sp<SkIDChangeListener> listener) { in addGenIDChangeListener() 86 void SkPixelRef::callGenIDChangeListeners() { in callGenIDChangeListeners() 100 void SkPixelRef::notifyPixelsChanged() { in notifyPixelsChanged() 110 void SkPixelRef::setImmutable() { in setImmutable() 114 void SkPixelRef::setImmutableWithID(uint32_t genID) { in setImmutableWithID() [all …]
|
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()
|
D | SkImagePriv.h | 15 class SkPixelRef; variable 63 extern const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* rasterImage);
|
D | SkPixelRefPriv.h | 17 sk_sp<SkPixelRef> SkMakePixelRefWithProc(int w, int h, size_t rowBytes, void* addr,
|
D | SkBitmap.cpp | 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()
|
D | SkSpecialSurface.cpp | 68 sk_sp<SkPixelRef> pr, in SkSpecialSurface_Raster() 109 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, 0); in MakeRaster()
|
/external/skqp/src/core/ |
D | SkPixelRef.cpp | 28 SkPixelRef::SkPixelRef(int width, int height, void* pixels, size_t rowBytes) in SkPixelRef() function in SkPixelRef 39 SkPixelRef::~SkPixelRef() { in ~SkPixelRef() 44 void SkPixelRef::android_only_reset(int width, int height, size_t rowBytes) { in android_only_reset() 54 void SkPixelRef::needsNewGenID() { in needsNewGenID() 59 uint32_t SkPixelRef::getGenerationID() const { in getGenerationID() 74 void SkPixelRef::addGenIDChangeListener(GenIDChangeListener* listener) { in addGenIDChangeListener() 85 void SkPixelRef::callGenIDChangeListeners() { in callGenIDChangeListeners() 101 void SkPixelRef::notifyPixelsChanged() { in notifyPixelsChanged() 111 void SkPixelRef::setImmutable() { in setImmutable() 115 void SkPixelRef::setImmutableWithID(uint32_t genID) { in setImmutableWithID() [all …]
|
D | SkMallocPixelRef.cpp | 47 sk_sp<SkPixelRef> SkMallocPixelRef::MakeDirect(const SkImageInfo& info, in MakeDirect() 53 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, nullptr, nullptr)); in MakeDirect() 57 sk_sp<SkPixelRef> SkMallocPixelRef::MakeUsing(void*(*allocProc)(size_t), in MakeUsing() 81 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, in MakeUsing() 85 sk_sp<SkPixelRef> SkMallocPixelRef::MakeAllocate(const SkImageInfo& info, size_t rowBytes) { in MakeAllocate() 89 sk_sp<SkPixelRef> SkMallocPixelRef::MakeZeroed(const SkImageInfo& info, in MakeZeroed() 98 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithProc(const SkImageInfo& info, in MakeWithProc() 109 return sk_sp<SkPixelRef>(new SkMallocPixelRef(info, addr, rowBytes, proc, context)); in MakeWithProc() 112 sk_sp<SkPixelRef> SkMallocPixelRef::MakeWithData(const SkImageInfo& info, in MakeWithData() 127 SkPixelRef* pr = new SkMallocPixelRef(info, pixels, rowBytes, in MakeWithData() [all …]
|
D | SkBitmap.cpp | 170 void SkBitmap::setPixelRef(sk_sp<SkPixelRef> pr, int dx, int dy) { in setPixelRef() 237 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(correctedInfo, rowBytes); in tryAllocPixels() 257 sk_sp<SkPixelRef> pr = (allocFlags & kZeroPixels_AllocFlag) ? in tryAllocPixelsFlags() 292 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeWithProc(correctedInfo, rb, pixels, in installPixels() 344 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, dst->rowBytes()); in allocPixelRef()
|
D | SkSpecialSurface.cpp | 67 sk_sp<SkPixelRef> pr, in SkSpecialSurface_Raster() 108 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeZeroed(info, 0); in MakeRaster()
|
D | SkImagePriv.h | 51 extern const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* rasterImage);
|
/external/skqp/include/core/ |
D | SkMallocPixelRef.h | 20 class SK_API SkMallocPixelRef : public SkPixelRef { 30 static sk_sp<SkPixelRef> MakeDirect(const SkImageInfo&, void* addr, size_t rowBytes); 42 static sk_sp<SkPixelRef> MakeAllocate(const SkImageInfo&, size_t rowBytes); 47 static sk_sp<SkPixelRef> MakeZeroed(const SkImageInfo&, size_t rowBytes); 62 static sk_sp<SkPixelRef> MakeWithProc(const SkImageInfo& info, size_t rowBytes, void* addr, 73 static sk_sp<SkPixelRef> MakeWithData(const SkImageInfo&, size_t rowBytes, sk_sp<SkData> data); 80 static sk_sp<SkPixelRef> MakeUsing(void*(*alloc)(size_t), 89 typedef SkPixelRef INHERITED;
|
D | SkPixelRef.h | 33 class SK_API SkPixelRef : public SkRefCnt { 35 SkPixelRef(int width, int height, void* addr, size_t rowBytes); 36 ~SkPixelRef() override; 124 friend void SkBitmapCache_setImmutableWithID(SkPixelRef*, uint32_t);
|
D | SkBitmap.h | 31 class SkPixelRef; variable 727 SkPixelRef* pixelRef() const { return fPixelRef.get(); } in pixelRef() 755 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy); 1171 sk_sp<SkPixelRef> fPixelRef;
|
/external/skqp/tests/ |
D | MallocPixelRefTest.cpp | 28 sk_sp<SkPixelRef> pr( in DEF_TEST() 37 sk_sp<SkPixelRef> pr( in DEF_TEST() 46 sk_sp<SkPixelRef> pr( in DEF_TEST() 55 sk_sp<SkPixelRef> pr( in DEF_TEST() 61 sk_sp<SkPixelRef> pr( in DEF_TEST() 68 sk_sp<SkPixelRef> pr( in DEF_TEST() 76 sk_sp<SkPixelRef> pr( in DEF_TEST() 90 sk_sp<SkPixelRef> pr( in DEF_TEST() 101 sk_sp<SkPixelRef> pr( in DEF_TEST() 110 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeWithData(info, rowBytes, data); in DEF_TEST()
|
D | PixelRefTest.cpp | 61 class TestListener : public SkPixelRef::GenIDChangeListener { 72 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0); in DEF_TEST()
|
/external/skia/tests/ |
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()
|
/external/skia/docs/examples/ |
D | Bitmap_tryAllocPixels_4.cpp | 6 class LargePixelRef : public SkPixelRef { 9 : SkPixelRef(info.width(), info.height(), storage, rowBytes) { in LargePixelRef() 25 sk_sp<SkPixelRef> pr = sk_sp<SkPixelRef>(new LargePixelRef(info, addr, rowBytes)); in allocPixelRef()
|
/external/skia/include/core/ |
D | SkPixelRef.h | 32 class SK_API SkPixelRef : public SkRefCnt { 34 SkPixelRef(int width, int height, void* addr, size_t rowBytes); 35 ~SkPixelRef() override; 118 friend void SkBitmapCache_setImmutableWithID(SkPixelRef*, uint32_t);
|
D | SkMallocPixelRef.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);
|
D | SkBitmap.h | 26 class SkPixelRef; variable 701 SkPixelRef* pixelRef() const { return fPixelRef.get(); } in pixelRef() 733 void setPixelRef(sk_sp<SkPixelRef> pixelRef, int dx, int dy); 1187 sk_sp<SkPixelRef> fPixelRef;
|
/external/skqp/site/user/api/ |
D | SkBitmap_Reference.md | 72 …<a href='undocumented#SkPixelRef'>SkPixelRef</a>* <a href='#SkBitmap_pixelRef'>pixelRef</a>() cons… 74 …/a>(<a href='undocumented#sk_sp'>sk_sp</a><<a href='undocumented#SkPixelRef'>SkPixelRef</a>> <a hr… 162 …SkImageInfo'>SkImageInfo</a> as input, and <a href='undocumented#SkPixelRef'>SkPixelRef</a> as out… 168 true if <a href='undocumented#SkPixelRef'>SkPixelRef</a> was allocated 205 …SkImageInfo'>SkImageInfo</a> as input, and <a href='undocumented#SkPixelRef'>SkPixelRef</a> as out… 240 …</a>, and with a width and height of zero. <a href='undocumented#SkPixelRef'>SkPixelRef</a> origin… 281 …rence#SkImageInfo'>SkImageInfo</a>, and share <a href='undocumented#SkPixelRef'>SkPixelRef</a></td> 321 …ce#SkImageInfo'>SkImageInfo</a>, and reassign <a href='undocumented#SkPixelRef'>SkPixelRef</a></td> 355 …crements <a href='undocumented#SkPixelRef'>SkPixelRef</a> reference count, if <a href='undocumente… 375 …rence#SkImageInfo'>SkImageInfo</a>, and share <a href='undocumented#SkPixelRef'>SkPixelRef</a></td> [all …]
|
/external/skqp/src/image/ |
D | SkSurface_Raster.cpp | 20 SkSurface_Raster(const SkImageInfo& info, sk_sp<SkPixelRef>, const SkSurfaceProps*); 80 SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, sk_sp<SkPixelRef> pr, in SkSurface_Raster() 115 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onNewImageSnapshot() 133 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onRestoreBackingMutability() 192 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeZeroed(info, rowBytes); in MakeRaster()
|
/external/skia/src/image/ |
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() 180 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, rowBytes); in MakeRaster()
|
/external/skqp/src/gpu/ |
D | SkGr.h | 36 class SkPixelRef; variable 225 SkPixelRef* pixelRef);
|