aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/pdf/SkPDFUtils.h
diff options
context:
space:
mode:
authorGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-11 23:24:18 +0000
committerGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-11 23:24:18 +0000
commit75f97e452e8f2ee55cd2b283df7d7734f48bc2bf (patch)
tree22bbb2a11daf8bd4edfbe5dc15f203872b2fca6b /include/pdf/SkPDFUtils.h
parent7aaee005fa2b219bb74c9c050936042e8c9bde6e (diff)
Generalize the flip origin argument to the PDF device constructor.
The argument still has a default value that does what most users will want, but provides more flexibility. Chrome will use this change to support an initial translation of the origin to simulate a margin and to scale the entire content (needed on Windows). When landing to Chrome, this will need http://codereview.chromium.org/6820038 Review URL: http://codereview.appspot.com/4373052 git-svn-id: http://skia.googlecode.com/svn/trunk@1111 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/pdf/SkPDFUtils.h')
-rw-r--r--include/pdf/SkPDFUtils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pdf/SkPDFUtils.h b/include/pdf/SkPDFUtils.h
index 501d746cd9..62a5120ae7 100644
--- a/include/pdf/SkPDFUtils.h
+++ b/include/pdf/SkPDFUtils.h
@@ -40,6 +40,7 @@ class SkPDFArray;
class SkPDFUtils {
public:
static SkPDFArray* MatrixToArray(const SkMatrix& matrix);
+ static void AppendTransform(const SkMatrix& matrix, SkWStream* content);
static void MoveTo(SkScalar x, SkScalar y, SkWStream* content);
static void AppendLine(SkScalar x, SkScalar y, SkWStream* content);