Home
last modified time | relevance | path

Searched refs:PixelRef (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/core/
DSkMallocPixelRef.cpp47 struct PixelRef final : public SkPixelRef { in MakeAllocate() struct
48 PixelRef(int w, int h, void* s, size_t r) : SkPixelRef(w, h, s, r) {} in MakeAllocate() function
49 ~PixelRef() override { sk_free(this->pixels()); } in MakeAllocate() argument
51 return sk_sp<SkPixelRef>(new PixelRef(info.width(), info.height(), addr, rowBytes)); in MakeAllocate()
67 struct PixelRef final : public SkPixelRef { in MakeWithData() struct
69 PixelRef(int w, int h, void* s, size_t r, sk_sp<SkData> d) in MakeWithData() argument
73 sk_sp<SkPixelRef> pr(new PixelRef(info.width(), info.height(), pixels, rowBytes, in MakeWithData()
DSkPixelRef.cpp141 struct PixelRef final : public SkPixelRef { in SkMakePixelRefWithProc() struct
144 PixelRef(int w, int h, void* s, size_t r, void (*proc)(void*, void*), void* ctx) in SkMakePixelRefWithProc() function
146 ~PixelRef() override { fReleaseProc(this->pixels(), fReleaseProcContext); } in SkMakePixelRefWithProc() argument
148 return sk_sp<SkPixelRef>(new PixelRef(width, height, addr, rowBytes, releaseProc, ctx)); in SkMakePixelRefWithProc()