aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/Sk2DPathEffect.cpp
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-04-05 13:09:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-05 23:52:23 +0000
commit99885411aef986f3de863e144a589adb6d7ecd0d (patch)
tree2c9b2fef53e2b4124b1ec89e4be8fa24c1f899c8 /src/effects/Sk2DPathEffect.cpp
parent5ddb30862509967eca24ba3831cc11ed5396eee7 (diff)
remove SK_IGNORE_TO_STRING
SK_IGNORE_TO_STRING is not defined anywhere. The same effect can be had by using a modern linker. Removing it simplifies bookmaker and makes our includes easier to understand. R=robertphillips@google.com TBR=reed@google.com Bug: skia:6898 Change-Id: Ib716f5ef1b42a7fbda0df43ece212d1b7c40289f Reviewed-on: https://skia-review.googlesource.com/118963 Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Cary Clark <caryclark@skia.org> Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'src/effects/Sk2DPathEffect.cpp')
-rw-r--r--src/effects/Sk2DPathEffect.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/effects/Sk2DPathEffect.cpp b/src/effects/Sk2DPathEffect.cpp
index e7ef54b6f7..a541b91476 100644
--- a/src/effects/Sk2DPathEffect.cpp
+++ b/src/effects/Sk2DPathEffect.cpp
@@ -74,14 +74,12 @@ void Sk2DPathEffect::flatten(SkWriteBuffer& buffer) const {
buffer.writeMatrix(fMatrix);
}
-#ifndef SK_IGNORE_TO_STRING
void Sk2DPathEffect::toString(SkString* str) const {
str->appendf("(matrix: %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f)",
fMatrix[SkMatrix::kMScaleX], fMatrix[SkMatrix::kMSkewX], fMatrix[SkMatrix::kMTransX],
fMatrix[SkMatrix::kMSkewY], fMatrix[SkMatrix::kMScaleY], fMatrix[SkMatrix::kMTransY],
fMatrix[SkMatrix::kMPersp0], fMatrix[SkMatrix::kMPersp1], fMatrix[SkMatrix::kMPersp2]);
}
-#endif
///////////////////////////////////////////////////////////////////////////////
@@ -120,14 +118,12 @@ void SkLine2DPathEffect::flatten(SkWriteBuffer &buffer) const {
}
-#ifndef SK_IGNORE_TO_STRING
void SkLine2DPathEffect::toString(SkString* str) const {
str->appendf("SkLine2DPathEffect: (");
this->INHERITED::toString(str);
str->appendf("width: %f", fWidth);
str->appendf(")");
}
-#endif
///////////////////////////////////////////////////////////////////////////////
@@ -153,11 +149,10 @@ void SkPath2DPathEffect::next(const SkPoint& loc, int u, int v,
dst->addPath(fPath, loc.fX, loc.fY);
}
-#ifndef SK_IGNORE_TO_STRING
void SkPath2DPathEffect::toString(SkString* str) const {
str->appendf("SkPath2DPathEffect: (");
this->INHERITED::toString(str);
// TODO: print out path information
str->appendf(")");
}
-#endif
+