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

Unified Diff: src/pdf/SkPDFDeviceFlattener.cpp

Issue 925343003: use common impl for drawTextOnPath (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move includes to the top Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« src/core/SkDevice.cpp ('K') | « src/pdf/SkPDFDeviceFlattener.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFDeviceFlattener.cpp
diff --git a/src/pdf/SkPDFDeviceFlattener.cpp b/src/pdf/SkPDFDeviceFlattener.cpp
index 477486413a2fb2ed8a41b63c888379c2d1742900..ab6ce09e0ee774bba3efb4cf5376e78d6ab81371 100644
--- a/src/pdf/SkPDFDeviceFlattener.cpp
+++ b/src/pdf/SkPDFDeviceFlattener.cpp
@@ -132,16 +132,6 @@ void SkPDFDeviceFlattener::drawPosText(const SkDraw& d, const void* text, size_t
INHERITED::drawPosText(d, text, len, pos, scalarsPerPos, offset, paint);
}
-void SkPDFDeviceFlattener::drawTextOnPath(const SkDraw& d, const void* text, size_t len,
- const SkPath& path, const SkMatrix* matrix,
- const SkPaint& paint) {
- if (mustPathText(d, paint) || (matrix && matrix->hasPerspective())) {
- d.drawTextOnPath((const char*)text, len, path, matrix, paint);
- return;
- }
- INHERITED::drawTextOnPath(d, text, len, path, matrix, paint);
-}
-
bool SkPDFDeviceFlattener::mustFlatten(const SkDraw& d) const {
// TODO(edisonn): testability, add flag to force return true.
return d.fMatrix->hasPerspective();
« src/core/SkDevice.cpp ('K') | « src/pdf/SkPDFDeviceFlattener.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698