Home | History | Annotate | Download | only in core

Lines Matching defs:SkISize

13 struct SkISize {
17 static SkISize Make(int32_t w, int32_t h) { return {w, h}; }
19 static SkISize MakeEmpty() { return {0, 0}; }
21 void set(int32_t w, int32_t h) { *this = SkISize{w, h}; }
39 static inline bool operator==(const SkISize& a, const SkISize& b) {
43 static inline bool operator!=(const SkISize& a, const SkISize& b) { return !(a == b); }
53 static SkSize Make(const SkISize& src) {
57 SkSize& operator=(const SkISize& src) {
80 SkISize toRound() const { return {SkScalarRoundToInt(fWidth), SkScalarRoundToInt(fHeight)}; }
82 SkISize toCeil() const { return {SkScalarCeilToInt(fWidth), SkScalarCeilToInt(fHeight)}; }
84 SkISize toFloor() const { return {SkScalarFloorToInt(fWidth), SkScalarFloorToInt(fHeight)}; }