diff options
author | Mike Reed <reed@google.com> | 2017-02-14 10:59:19 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-14 19:45:24 +0000 |
commit | df85c38163245c7fc3c23cad3a4ad104949f3a62 (patch) | |
tree | 9f56ae6ce07ee9ae6a87e2bd2c52ee787fee7b32 /tests/ClipStackTest.cpp | |
parent | 78c0c4c5a0bed8ac54542d2d378a0fc9ec8c034b (diff) |
stop using SkScalarMul
BUG=skia:
Change-Id: Ie41d8665a1c62ba8eddc93d8cfefaf64ddc52ff8
Reviewed-on: https://skia-review.googlesource.com/8411
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tests/ClipStackTest.cpp')
-rw-r--r-- | tests/ClipStackTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ClipStackTest.cpp b/tests/ClipStackTest.cpp index 8448f4cbe5..744ef18d17 100644 --- a/tests/ClipStackTest.cpp +++ b/tests/ClipStackTest.cpp @@ -979,8 +979,8 @@ static void test_reduced_clip_stack(skiatest::Reporter* reporter) { bool doSave = r.nextBool(); SkSize size = SkSize::Make( - SkScalarMul(kBounds.width(), r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSizeFrac)), - SkScalarMul(kBounds.height(), r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSizeFrac))); + kBounds.width() * r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSizeFrac), + kBounds.height() * r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSizeFrac)); SkPoint xy = {r.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth), r.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight)}; |