Lines Matching refs:GrPixmapBase
15 template <typename T, typename DERIVED> class GrPixmapBase {
57 GrPixmapBase() = default;
58 GrPixmapBase(const GrPixmapBase& that) = default;
59 GrPixmapBase(GrPixmapBase&& that) = default;
60 GrPixmapBase& operator=(const GrPixmapBase& that) = default;
61 GrPixmapBase& operator=(GrPixmapBase&& that) = default;
63 GrPixmapBase(GrImageInfo info, T* addr, size_t rowBytes) in GrPixmapBase() function
70 GrPixmapBase(GrImageInfo info, sk_sp<SkData> storage, size_t rowBytes) in GrPixmapBase() function
71 : GrPixmapBase(std::move(info), const_cast<void*>(storage->data()), rowBytes) { in GrPixmapBase()
83 class GrPixmap : public GrPixmapBase<void, GrPixmap> {
91 GrPixmap(GrImageInfo info, void* addr, size_t rowBytes) : GrPixmapBase(info, addr, rowBytes) {} in GrPixmap()
94 : GrPixmapBase(pixmap.info(), pixmap.writable_addr(), pixmap.rowBytes()) {} in GrPixmap()
111 : GrPixmapBase(std::move(info), std::move(storage), rowBytes) {} in GrPixmap()
118 class GrCPixmap : public GrPixmapBase<const void, GrCPixmap> {
135 : GrPixmapBase(pixmap.info(), pixmap.addr(), pixmap.rowBytes()) {} in GrCPixmap()
138 : GrPixmapBase(info, addr, rowBytes) {} in GrCPixmap()
142 : GrPixmapBase(info, std::move(storage), rowBytes) {} in GrCPixmap()