Revert "Revert "Reland "asyncRescaleAndRead supports unpremul results on GPU"""
This reverts commit 7f296c421e2c9b38f2348cf152748b0e00f3f6aa.
Bug: skia:11019
Change-Id: Ia6aa029abc0cf6a3ccd5467e67e5faa2c0239955
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/353616
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrSurfaceContext.h b/src/gpu/GrSurfaceContext.h
index 8f20d10..80e3fb1 100644
--- a/src/gpu/GrSurfaceContext.h
+++ b/src/gpu/GrSurfaceContext.h
@@ -161,17 +161,17 @@
* different size than srcRect. Though, it could be relaxed to allow non-scaling color
* conversions.
*/
- std::unique_ptr<GrSurfaceDrawContext> rescale(const GrImageInfo& info,
+ std::unique_ptr<GrSurfaceFillContext> rescale(const GrImageInfo& info,
GrSurfaceOrigin,
SkIRect srcRect,
SkImage::RescaleGamma,
SkImage::RescaleMode);
/**
- * Like the above but allows the caller ot specify a destination draw context and
+ * Like the above but allows the caller ot specify a destination fill context and
* rect within that context. The dst rect must be contained by the dst or this will fail.
*/
- bool rescaleInto(GrSurfaceDrawContext* dst,
+ bool rescaleInto(GrSurfaceFillContext* dst,
SkIRect dstRect,
SkIRect srcRect,
SkImage::RescaleGamma,