OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkRRect_DEFINED | 8 #ifndef SkRRect_DEFINED |
9 #define SkRRect_DEFINED | 9 #define SkRRect_DEFINED |
10 | 10 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 SkRect fRect; | 319 SkRect fRect; |
320 // Radii order is UL, UR, LR, LL. Use Corner enum to index into fRadii[] | 320 // Radii order is UL, UR, LR, LL. Use Corner enum to index into fRadii[] |
321 SkVector fRadii[4]; | 321 SkVector fRadii[4]; |
322 // use an explicitly sized type so we're sure the class is dense (no uniniti
alized bytes) | 322 // use an explicitly sized type so we're sure the class is dense (no uniniti
alized bytes) |
323 int32_t fType; | 323 int32_t fType; |
324 // TODO: add padding so we can use memcpy for flattening and not copy | 324 // TODO: add padding so we can use memcpy for flattening and not copy |
325 // uninitialized data | 325 // uninitialized data |
326 | 326 |
327 void computeType(); | 327 void computeType(); |
328 bool checkCornerContainment(SkScalar x, SkScalar y) const; | 328 bool checkCornerContainment(SkScalar x, SkScalar y) const; |
| 329 void scaleRadii(); |
329 | 330 |
330 // to access fRadii directly | 331 // to access fRadii directly |
331 friend class SkPath; | 332 friend class SkPath; |
332 }; | 333 }; |
333 | 334 |
334 #endif | 335 #endif |
OLD | NEW |