From ec42e15c4d087431535443952c41696b69573b13 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Fri, 18 May 2018 12:52:22 -0400 Subject: Add convenience overload of SkPointPriv::SetRectTriStrip that takes SkRect Change-Id: Idf5bfafaf19c20f074f12d706b8b8984c5935e6d Reviewed-on: https://skia-review.googlesource.com/129185 Reviewed-by: Robert Phillips Commit-Queue: Brian Salomon --- tests/OnFlushCallbackTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/OnFlushCallbackTest.cpp') 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); -- cgit v1.2.3