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:
parent
4f9cdcc810
commit
f59799139b
@ -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;
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user