diff options
author | 2017-02-03 11:34:13 -0500 | |
---|---|---|
committer | 2017-02-03 17:26:43 +0000 | |
commit | 8d3196bdfcf478982bec9885d21e1d664ab9a72b (patch) | |
tree | 565d17927c9bb022cdb7bf10108bf7fc52b7a5db /tests/PathTest.cpp | |
parent | 20f00784b8500ccb68f0e402eeccd9bbf2707040 (diff) |
expose new tight-bounds method on SkPath
BUG=skia:
Change-Id: Ie50df49c1758af203042a84dc2cd505046373d2c
Reviewed-on: https://skia-review.googlesource.com/7996
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tests/PathTest.cpp')
-rw-r--r-- | tests/PathTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp index 38bac25ba7..694dab57ee 100644 --- a/tests/PathTest.cpp +++ b/tests/PathTest.cpp @@ -4741,8 +4741,7 @@ DEF_TEST(path_tight_bounds, reporter) { SkPath path; rand_path(&path, rand, verb, n); SkRect bounds = path.getBounds(); - SkRect tight; - SkPathPriv::ComputeTightBounds(path, &tight); + SkRect tight = path.computeTightBounds(); REPORTER_ASSERT(reporter, bounds.contains(tight)); SkRect tight2; |