aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFDevice.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-07-19 15:51:18 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-19 22:25:22 +0000
commit7e872caaf618c8c5fc376515143a3176e09bced2 (patch)
tree714b0cef6f9c7dacb82c6c057590cfe9ab79f7b5 /src/pdf/SkPDFDevice.cpp
parentb7648a27583a2ef775384751fee25ac9cf3db5d5 (diff)
SkPDF: SkPDFMakeShader takes the paint color.
This allows alpha blending and also alpha shaders with color blended in. fixes GMs: composeshader_alpha, composeshader_bitmap Change-Id: I3ab9cbef216f7733798d2e29541b4211c627dab2 Reviewed-on: https://skia-review.googlesource.com/24760 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/pdf/SkPDFDevice.cpp')
-rw-r--r--src/pdf/SkPDFDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index 674e3718a5..99136226ec 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -2180,7 +2180,7 @@ void SkPDFDevice::populateGraphicStateEntryFromPaint(
SkIRect bounds;
clipStackBounds.roundOut(&bounds);
- pdfShader = SkPDFMakeShader(fDocument, shader, transform, bounds);
+ pdfShader = SkPDFMakeShader(fDocument, shader, transform, bounds, paint.getColor());
if (pdfShader.get()) {
// pdfShader has been canonicalized so we can directly compare