rename round, ceil, etc. to avoid some platform macros

git-svn-id: http://skia.googlecode.com/svn/trunk@577 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@android.com 2010-06-15 00:57:50 +00:00
parent 4f9cdcc810
commit f59799139b
2 changed files with 5 additions and 5 deletions

View File

@ -83,19 +83,19 @@ struct SkSize : public SkTSize<SkScalar> {
return *this;
}
SkISize round() const {
SkISize toRound() const {
SkISize s;
s.set(SkScalarRound(fWidth), SkScalarRound(fHeight));
return s;
}
SkISize ceil() const {
SkISize toCeil() const {
SkISize s;
s.set(SkScalarCeil(fWidth), SkScalarCeil(fHeight));
return s;
}
SkISize floor() const {
SkISize toFloor() const {
SkISize s;
s.set(SkScalarFloor(fWidth), SkScalarFloor(fHeight));
return s;

View File

@ -53,7 +53,7 @@ static void TestSize(skiatest::Reporter* reporter) {
SkISize ia;
ia.set(ix, iy);
a.set(x, y);
REPORTER_ASSERT(reporter, a.round() == ia);
REPORTER_ASSERT(reporter, a.toRound() == ia);
};
#include "TestClassDef.h"