diff options
author | reed <reed@google.com> | 2016-08-24 04:22:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-24 04:22:08 -0700 |
commit | 6a88206b2ece8b64534c87fca156e5fe161f884e (patch) | |
tree | 340348c99fcd4b8f04153beb00b6645648553da5 /src/gpu | |
parent | 9dc6cf6b8833d36c29a23d2519989b069745fcd5 (diff) |
combine setRectFan and mapRect
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2276603002
Review-Url: https://codereview.chromium.org/2276603002
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrQuad.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrQuad.h b/src/gpu/GrQuad.h index 9a8d1f3a4a..3a202c61cb 100644 --- a/src/gpu/GrQuad.h +++ b/src/gpu/GrQuad.h @@ -10,6 +10,7 @@ #include "SkPoint.h" #include "SkMatrix.h" +#include "SkMatrixPriv.h" /** * GrQuad is a collection of 4 points which can be used to represent an arbitrary quadrilateral @@ -35,8 +36,7 @@ public: } void setFromMappedRect(const SkRect& rect, const SkMatrix& matrix) { - this->set(rect); - matrix.mapPoints(fPoints, kNumPoints); + SkMatrixPriv::SetMappedRectFan(matrix, rect, fPoints); } const GrQuad& operator=(const GrQuad& that) { |