fix sense of ifdef for deprecated method

Change-Id: I32164225750b23e1cc26aa36a60feda27bbd90a8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/257319
Reviewed-by: Florin Malita <fmalita@chromium.org>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2019-12-02 10:38:42 -05:00 committed by Skia Commit-Bot
parent d523ce04e7
commit aa98dd3d27
2 changed files with 2 additions and 2 deletions

View File

@ -1555,7 +1555,7 @@ public:
*/
Verb next(SkPoint pts[4]);
#ifndef SK_SUPPORT_LEGACY_PATH_ITER_NEXT
#ifdef SK_SUPPORT_LEGACY_PATHITER_NEXT
// DEPRECATED
Verb next(SkPoint pts[4], bool /*doConsumeDegenerates*/, bool /*exact*/ = false) {
return this->next(pts);

View File

@ -275,7 +275,7 @@ void EMSCRIPTEN_KEEPALIVE ToCanvas(const SkPath& path, emscripten::val /* Path2D
SkPath::Iter iter(path, false);
SkPoint pts[4];
SkPath::Verb verb;
while ((verb = iter.next(pts, false)) != SkPath::kDone_Verb) {
while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
switch (verb) {
case SkPath::kMove_Verb:
ctx.call<void>("moveTo", pts[0].x(), pts[0].y());