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

Unified Diff: include/core/SkSize.h

Issue 111353003: deprecate SkScalarRound (and its ilk), use SkScalarRound[ToInt,ToScalar]. #define SK_SUPPORT_DEPREC… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 | « include/core/SkScalar.h ('k') | samplecode/SampleAll.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkSize.h
diff --git a/include/core/SkSize.h b/include/core/SkSize.h
index 01c6e35083d2e44076d4afbed5160cc33abce777..7bc8c7165d7b629e7e2e99e83a296f3a9cf96c60 100644
--- a/include/core/SkSize.h
+++ b/include/core/SkSize.h
@@ -90,19 +90,19 @@ struct SkSize : public SkTSize<SkScalar> {
SkISize toRound() const {
SkISize s;
- s.set(SkScalarRound(fWidth), SkScalarRound(fHeight));
+ s.set(SkScalarRoundToInt(fWidth), SkScalarRoundToInt(fHeight));
return s;
}
SkISize toCeil() const {
SkISize s;
- s.set(SkScalarCeil(fWidth), SkScalarCeil(fHeight));
+ s.set(SkScalarCeilToInt(fWidth), SkScalarCeilToInt(fHeight));
return s;
}
SkISize toFloor() const {
SkISize s;
- s.set(SkScalarFloor(fWidth), SkScalarFloor(fHeight));
+ s.set(SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight));
return s;
}
};
« no previous file with comments | « include/core/SkScalar.h ('k') | samplecode/SampleAll.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698