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

Unified Diff: include/core/SkMatrix.h

Issue 1468483002: Add SK_BEGIN_REQUIRE_DENSE / SK_END_REQUIRE_DENSE. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkStrokeRec Created 5 years, 1 month 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 | « no previous file | include/core/SkStrokeRec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkMatrix.h
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h
index 6560cb5c2b1df32fc7dfe0b1c136f2e393b74d79..97a53505ef3734ae36de8d5e0799b07d4c4e075a 100644
--- a/include/core/SkMatrix.h
+++ b/include/core/SkMatrix.h
@@ -22,6 +22,7 @@ class SkString;
using either reset() - to construct an identity matrix, or one of the set
functions (e.g. setTranslate, setRotate, etc.).
*/
+SK_BEGIN_REQUIRE_DENSE
class SK_API SkMatrix {
public:
static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar sx, SkScalar sy) {
@@ -29,13 +30,13 @@ public:
m.setScale(sx, sy);
return m;
}
-
+
static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar scale) {
SkMatrix m;
m.setScale(scale, scale);
return m;
}
-
+
static SkMatrix SK_WARN_UNUSED_RESULT MakeTrans(SkScalar dx, SkScalar dy) {
SkMatrix m;
m.setTranslate(dx, dy);
@@ -826,5 +827,6 @@ private:
friend class SkPerspIter;
};
+SK_END_REQUIRE_DENSE
#endif
« no previous file with comments | « no previous file | include/core/SkStrokeRec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698