aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFUtils.h
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-06-29 18:51:35 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-30 15:37:45 +0000
commita062258e76e28ef0ec88ef827ae84a90730393cc (patch)
tree1806f06e43425696b2fad918dd7c4e7fd10d508b /src/pdf/SkPDFUtils.h
parent1c9686bfa5e2de3e06f1d1b9691105afb6659e85 (diff)
SkPDF: clean up fRasterDpi
- PDFDevice no longer has a fRasterDpi; simply queries document. - #define DPI_FOR_RASTER_SCALE_ONE becomes constexpr float. - PDFShader::GetPDFShader no longer takes rasterScale or dpi - Remove un-needed factory functions. We're all adults here. Change-Id: Id2ce75d4e61af385763ccfb1db210465a1600067 Reviewed-on: https://skia-review.googlesource.com/21348 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/pdf/SkPDFUtils.h')
-rw-r--r--src/pdf/SkPDFUtils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pdf/SkPDFUtils.h b/src/pdf/SkPDFUtils.h
index 4d0447c194..dfc10b3463 100644
--- a/src/pdf/SkPDFUtils.h
+++ b/src/pdf/SkPDFUtils.h
@@ -35,6 +35,8 @@ struct SkRect;
namespace SkPDFUtils {
+constexpr float kDpiForRasterScaleOne = 72.0f;
+
sk_sp<SkPDFArray> RectToArray(const SkRect& rect);
sk_sp<SkPDFArray> MatrixToArray(const SkMatrix& matrix);
void AppendTransform(const SkMatrix& matrix, SkWStream* content);