Home
last modified time | relevance | path

Searched refs:SkPixelRef (Results 1 – 25 of 47) sorted by relevance

12

/external/skia/src/core/
DSkPixelRef.cpp30 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 …]
DSkMallocPixelRef.cpp24 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()
DSkImagePriv.h15 class SkPixelRef; variable
63 extern const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* rasterImage);
DSkPixelRefPriv.h17 sk_sp<SkPixelRef> SkMakePixelRefWithProc(int w, int h, size_t rowBytes, void* addr,
DSkBitmap.cpp169 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()
DSkSpecialSurface.cpp68 sk_sp<SkPixelRef> pr, in SkSpecialSurface_Raster()
109 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, 0); in MakeRaster()
/external/skqp/src/core/
DSkPixelRef.cpp28 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 …]
DSkMallocPixelRef.cpp47 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 …]
DSkBitmap.cpp170 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()
DSkSpecialSurface.cpp67 sk_sp<SkPixelRef> pr, in SkSpecialSurface_Raster()
108 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeZeroed(info, 0); in MakeRaster()
DSkImagePriv.h51 extern const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* rasterImage);
/external/skqp/include/core/
DSkMallocPixelRef.h20 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;
DSkPixelRef.h33 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);
DSkBitmap.h31 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/
DMallocPixelRefTest.cpp28 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()
DPixelRefTest.cpp61 class TestListener : public SkPixelRef::GenIDChangeListener {
72 sk_sp<SkPixelRef> pixelRef = SkMallocPixelRef::MakeAllocate(info, 0); in DEF_TEST()
/external/skia/tests/
DMallocPixelRefTest.cpp26 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/
DBitmap_tryAllocPixels_4.cpp6 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/
DSkPixelRef.h32 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);
DSkMallocPixelRef.h31 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);
DSkBitmap.h26 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/
DSkBitmap_Reference.md72 …<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/
DSkSurface_Raster.cpp20 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/
DSkSurface_Raster.cpp20 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/
DSkGr.h36 class SkPixelRef; variable
225 SkPixelRef* pixelRef);

12