doh - fix build
git-svn-id: http://skia.googlecode.com/svn/trunk@498 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
60bc6d5cb0
commit
c83d422b63
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user