Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: src/pdf/SkPDFDeviceFlattener.h

Issue 605533002: Fix SkTextBlob offset semantics. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: default run positioning fix Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFDeviceFlattener.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPDFDeviceFlattener_DEFINED 8 #ifndef SkPDFDeviceFlattener_DEFINED
9 #define SkPDFDeviceFlattener_DEFINED 9 #define SkPDFDeviceFlattener_DEFINED
10 10
(...skipping 19 matching lines...) Expand all
30 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, 30 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode,
31 size_t count, const SkPoint[], 31 size_t count, const SkPoint[],
32 const SkPaint& paint) SK_OVERRIDE; 32 const SkPaint& paint) SK_OVERRIDE;
33 virtual void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint); 33 virtual void drawRect(const SkDraw&, const SkRect& r, const SkPaint& paint);
34 virtual void drawPath(const SkDraw&, const SkPath& origpath, 34 virtual void drawPath(const SkDraw&, const SkPath& origpath,
35 const SkPaint& paint, const SkMatrix* prePathMatrix, 35 const SkPaint& paint, const SkMatrix* prePathMatrix,
36 bool pathIsMutable) SK_OVERRIDE; 36 bool pathIsMutable) SK_OVERRIDE;
37 virtual void drawText(const SkDraw&, const void* text, size_t len, 37 virtual void drawText(const SkDraw&, const void* text, size_t len,
38 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE; 38 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE;
39 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 39 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
40 const SkScalar pos[], SkScalar constY, 40 const SkScalar pos[], int scalarsPerPos,
41 int scalarsPerPos, const SkPaint&) SK_OVERRIDE; 41 const SkPoint& offset, const SkPaint&) SK_OVERRIDE;
42 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, 42 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len,
43 const SkPath& path, const SkMatrix* matrix, 43 const SkPath& path, const SkMatrix* matrix,
44 const SkPaint& paint) SK_OVERRIDE; 44 const SkPaint& paint) SK_OVERRIDE;
45 private: 45 private:
46 46
47 bool mustFlatten(const SkDraw& d) const; 47 bool mustFlatten(const SkDraw& d) const;
48 bool mustPathText(const SkDraw& d, const SkPaint& paint); 48 bool mustPathText(const SkDraw& d, const SkPaint& paint);
49 49
50 friend class SkDocument_PDF; 50 friend class SkDocument_PDF;
51 }; 51 };
52 52
53 #endif // SkPDFDeviceFlattener_DEFINED 53 #endif // SkPDFDeviceFlattener_DEFINED
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFDeviceFlattener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698