8#ifndef GrDeferredProxyUploader_DEFINED
9#define GrDeferredProxyUploader_DEFINED
50 if (fScheduledUpload) {
60 if (this->fPixels.
addr()) {
65 this->fPixels.rowBytes());
71 fScheduledUpload =
true;
94 bool fScheduledUpload;
101 template <
typename... Args>
103 : fData(
std::make_unique<
T>(
std::forward<Args>(
args)...)) {
116 void freeData()
override {
120 std::unique_ptr<T> fData;
std::function< bool(GrTextureProxy *, SkIRect, GrColorType srcColorType, const void *, size_t rowBytes)> GrDeferredTextureUploadWritePixelsFn
static constexpr GrColorType SkColorTypeToGrColorType(SkColorType ct)
GrDeferredProxyUploader()
virtual ~GrDeferredProxyUploader()
SkAutoPixmapStorage * getPixels()
void scheduleUpload(GrOpFlushState *flushState, GrTextureProxy *proxy)
skgpu::AtlasToken addASAPUpload(GrDeferredTextureUploadFn &&) final
~GrTDeferredProxyUploader() override
GrTDeferredProxyUploader(Args &&... args)
void resetDeferredUploader()
GrTextureProxyPriv texPriv()
const SkImageInfo & info() const
const void * addr() const
SkISize dimensions() const
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static constexpr SkIRect MakeSize(const SkISize &size)
SkColorType colorType() const