Move to sampling for async-rescale routines
Bug: skia:7650
Change-Id: I10fde77472679b81747e15f150cbc0fe8e49906f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/349402
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/src/gpu/GrSurfaceContext.h b/src/gpu/GrSurfaceContext.h
index e8f16f8..47d92c2 100644
--- a/src/gpu/GrSurfaceContext.h
+++ b/src/gpu/GrSurfaceContext.h
@@ -8,10 +8,10 @@
#ifndef GrSurfaceContext_DEFINED
#define GrSurfaceContext_DEFINED
-#include "include/core/SkFilterQuality.h"
#include "include/core/SkImage.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
+#include "include/core/SkSamplingOptions.h"
#include "include/core/SkSurface.h"
#include "src/gpu/GrClientMappedBufferManager.h"
#include "src/gpu/GrColorInfo.h"
@@ -104,13 +104,14 @@
using ReadPixelsCallback = SkImage::ReadPixelsCallback;
using ReadPixelsContext = SkImage::ReadPixelsContext;
using RescaleGamma = SkImage::RescaleGamma;
+ using RescaleMode = SkImage::RescaleMode;
// GPU implementation for SkImage:: and SkSurface::asyncRescaleAndReadPixels.
void asyncRescaleAndReadPixels(GrDirectContext*,
const SkImageInfo& info,
const SkIRect& srcRect,
RescaleGamma rescaleGamma,
- SkFilterQuality rescaleQuality,
+ RescaleMode,
ReadPixelsCallback callback,
ReadPixelsContext callbackContext);
@@ -121,7 +122,7 @@
const SkIRect& srcRect,
SkISize dstSize,
RescaleGamma rescaleGamma,
- SkFilterQuality rescaleQuality,
+ RescaleMode,
ReadPixelsCallback callback,
ReadPixelsContext context);
@@ -164,7 +165,7 @@
GrSurfaceOrigin,
SkIRect srcRect,
SkImage::RescaleGamma,
- SkFilterQuality);
+ SkImage::RescaleMode);
/**
* Like the above but allows the caller ot specify a destination draw context and
@@ -174,7 +175,7 @@
SkIRect dstRect,
SkIRect srcRect,
SkImage::RescaleGamma,
- SkFilterQuality);
+ SkImage::RescaleMode);
GrAuditTrail* auditTrail();