diff options
author | Brian Salomon <bsalomon@google.com> | 2018-05-18 12:52:22 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-18 18:11:14 +0000 |
commit | ec42e15c4d087431535443952c41696b69573b13 (patch) | |
tree | 3406a9c8a367bb8b3b8abec2785a537a27ca3ad8 /tests/OnFlushCallbackTest.cpp | |
parent | ec79c39a770205910f0abd762de7e19a96c986ca (diff) |
Add convenience overload of SkPointPriv::SetRectTriStrip that takes SkRect
Change-Id: Idf5bfafaf19c20f074f12d706b8b8984c5935e6d
Reviewed-on: https://skia-review.googlesource.com/129185
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests/OnFlushCallbackTest.cpp')
-rw-r--r-- | tests/OnFlushCallbackTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/OnFlushCallbackTest.cpp b/tests/OnFlushCallbackTest.cpp index a503bc3a56..8fb8a38d75 100644 --- a/tests/OnFlushCallbackTest.cpp +++ b/tests/OnFlushCallbackTest.cpp @@ -139,8 +139,7 @@ private: // Setup positions SkPoint* position = (SkPoint*) vertices; - SkPointPriv::SetRectTriStrip(position, fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, - vertexStride); + SkPointPriv::SetRectTriStrip(position, fRect, vertexStride); // Setup vertex colors GrColor* color = (GrColor*)((intptr_t)vertices + kColorOffset); |