blob: 041320b064de599e99adb6c44beeeb7bc1596bb6 [file]
// Copyright 2019 Google LLC
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
REG_FIDDLE(Path_reset, 256, 256, true, 0) {
void draw(SkCanvas* canvas) {
SkPath path1, path2;
path1 = SkPath::Rect({10, 20, 30, 40}, SkPathFillType::kInverseWinding);
SkDebugf("path1 %c= path2\n", path1 == path2 ? '=' : '!');
path1.reset();
SkDebugf("path1 %c= path2\n", path1 == path2 ? '=' : '!');
}
} // END FIDDLE