doh - fix build

git-svn-id: http://skia.googlecode.com/svn/trunk@498 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@android.com 2010-02-11 11:17:00 +00:00
parent 60bc6d5cb0
commit c83d422b63

View File

@ -70,8 +70,14 @@ typedef SkTSize<int32_t> SkISize;
#include "SkScalar.h"
struct SkSize : public SkTSize<SkScalar> {
SkSize(const SkTSize<SkScalar& src) : fWidth(src.fWidth), fHeight(src.fHeight) {}
static SkSize Make(SkScalar w, SkScalar h) {
SkSize s;
s.fWidth = w;
s.fHeight = h;
return s;
}
SkSize& operator=(const SkISize& src) {
this->set(SkIntToScalar(src.fWidth), SkIntToScalar(src.fHeight));
return *this;