aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkGpuBlurUtils.h
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-07-21 13:28:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-21 13:28:36 -0700
commitdfe4f2e4fe5b162d4adb4486fe751f1e3b30bea7 (patch)
treeaa6ff74a25306386a0c5b5586a4843b470d80101 /src/effects/SkGpuBlurUtils.h
parent8602ede5fdfa721dcad4dcb11db028c1c24265f1 (diff)
Add SkColorSpace to GrDrawContext
Diffstat (limited to 'src/effects/SkGpuBlurUtils.h')
-rw-r--r--src/effects/SkGpuBlurUtils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/effects/SkGpuBlurUtils.h b/src/effects/SkGpuBlurUtils.h
index 4f80fc3114..550f3b8d6f 100644
--- a/src/effects/SkGpuBlurUtils.h
+++ b/src/effects/SkGpuBlurUtils.h
@@ -23,6 +23,7 @@ namespace SkGpuBlurUtils {
* Note: one of sigmaX and sigmaY should be non-zero!
* @param context The GPU context
* @param srcTexture The source texture to be blurred.
+ * @param colorSpace Color space of the source (used for the drawContext result, too).
* @param gammaCorrect Should blur be gamma-correct (sRGB to linear, etc...)
* @param dstBounds The destination bounds, relative to the source texture.
* @param srcBounds The source bounds, relative to the source texture. If non-null,
@@ -33,6 +34,7 @@ namespace SkGpuBlurUtils {
*/
sk_sp<GrDrawContext> GaussianBlur(GrContext* context,
GrTexture* srcTexture,
+ sk_sp<SkColorSpace> colorSpace,
bool gammaCorrect,
const SkIRect& dstBounds,
const SkIRect* srcBounds,