38 , fSrcColorType(srcColorType)
39 , fDstColorType(dstColorType) {
41 fLevels.
reset(levelCount);
42 std::copy_n(texels, levelCount, fLevels.
get());
54 *targetUpdateBounds = fRect;
bool writePixels(GrSurface *surface, SkIRect rect, GrColorType surfaceColorType, GrColorType srcColorType, const GrMipLevel texels[], int mipLevelCount, bool prepForTexSampling=false)
GrSurfaceProxy * target(int i) const
void addTarget(GrDrawingManager *dm, const GrSurfaceProxyView &view)
void addInterval(GrSurfaceProxy *, unsigned int start, unsigned int end, ActualUse actualUse, AllowRecycling SkDEBUGCODE(, bool isDirectDstRead=false))
unsigned int curOp() const
GrSurface * peekSurface() const
bool isInstantiated() const
static sk_sp< GrRenderTask > Make(GrDrawingManager *, sk_sp< GrSurfaceProxy >, SkIRect, GrColorType srcColorType, GrColorType dstColorType, const GrMipLevel[], int levelCount)
sk_sp< SkBlender > blender SkRect rect