Searched defs:SkSize (Results 1 - 2 of 2) sorted by relevance

/external/skia/include/core/
H A DSkSize.h47 struct SkSize { struct
51 static SkSize Make(SkScalar w, SkScalar h) { return {w, h}; }
53 static SkSize Make(const SkISize& src) {
57 SkSize& operator=(const SkISize& src) {
58 return *this = SkSize{SkIntToScalar(src.fWidth), SkIntToScalar(src.fHeight)};
61 static SkSize MakeEmpty() { return {0, 0}; }
63 void set(SkScalar w, SkScalar h) { *this = SkSize{w, h}; }
73 void setEmpty() { *this = SkSize{0, 0}; }
87 static inline bool operator==(const SkSize& a, const SkSize
[all...]
/external/skqp/include/core/
H A DSkSize.h47 struct SkSize { struct
51 static SkSize Make(SkScalar w, SkScalar h) { return {w, h}; }
53 static SkSize Make(const SkISize& src) {
57 SkSize& operator=(const SkISize& src) {
58 return *this = SkSize{SkIntToScalar(src.fWidth), SkIntToScalar(src.fHeight)};
61 static SkSize MakeEmpty() { return {0, 0}; }
63 void set(SkScalar w, SkScalar h) { *this = SkSize{w, h}; }
73 void setEmpty() { *this = SkSize{0, 0}; }
87 static inline bool operator==(const SkSize& a, const SkSize
[all...]

Completed in 113 milliseconds