Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: src/gpu/GrQuad.h

Issue 2276603002: combine setRectFan and mapRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rearrange parameter order Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkMatrixPriv.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrQuad.h
diff --git a/src/gpu/GrQuad.h b/src/gpu/GrQuad.h
index 9a8d1f3a4a37a1d421b83ceb52700ce593a0391d..3a202c61cb47da623493dd4da242fc3d01a61c47 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) {
« no previous file with comments | « src/core/SkMatrixPriv.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698