aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkShader.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2016-12-05 15:26:50 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-05 21:48:59 +0000
commit11970e56c10b49ad06adbe9e835d32c00a63dd7d (patch)
tree8e5f264ddc37121cc59277a768e7447bebc57ff0 /include/core/SkShader.h
parent45565b676c86d6b4955b8643236880b016772e95 (diff)
Add destination color space to shader ContextRec
BUG=skia: Change-Id: Ib1920fffd5735ad54a5b785bbc2676ea240bdbfa Reviewed-on: https://skia-review.googlesource.com/5611 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'include/core/SkShader.h')
-rw-r--r--include/core/SkShader.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 9e05a38899..cafeedd0d1 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -116,16 +116,18 @@ public:
};
ContextRec(const SkPaint& paint, const SkMatrix& matrix, const SkMatrix* localM,
- DstType dstType)
+ DstType dstType, SkColorSpace* dstColorSpace)
: fPaint(&paint)
, fMatrix(&matrix)
, fLocalMatrix(localM)
- , fPreferredDstType(dstType) {}
+ , fPreferredDstType(dstType)
+ , fDstColorSpace(dstColorSpace) {}
const SkPaint* fPaint; // the current paint associated with the draw
const SkMatrix* fMatrix; // the current matrix in the canvas
const SkMatrix* fLocalMatrix; // optional local matrix
const DstType fPreferredDstType; // the "natural" client dest type
+ SkColorSpace* fDstColorSpace; // the color space of the dest surface (if any)
};
class Context : public ::SkNoncopyable {