| Index: include/core/SkRRect.h
|
| diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h
|
| index 32d62856bc90fddec1a33196f8f691ce8506de68..77e109d45b948eff171ac1373247e5b60fb6dae1 100644
|
| --- a/include/core/SkRRect.h
|
| +++ b/include/core/SkRRect.h
|
| @@ -12,6 +12,7 @@
|
| #include "SkPoint.h"
|
|
|
| class SkPath;
|
| +class SkMatrix;
|
|
|
| // Path forward:
|
| // core work
|
| @@ -277,6 +278,17 @@ public:
|
| */
|
| uint32_t readFromMemory(const void* buffer);
|
|
|
| + /**
|
| + * Transform by the specified matrix, and put the result in dst.
|
| + *
|
| + * @param matrix SkMatrix specifying the transform. Must only contain
|
| + * scale and/or translate, or this call will fail.
|
| + * @param dst SkRRect to store the result. If NULL, the transform will
|
| + * be performed on this.
|
| + * @return true on success, false on failure. If false, dst is unmodified.
|
| + */
|
| + bool transform(const SkMatrix& matrix, SkRRect* dst) const;
|
| +
|
| private:
|
| SkRect fRect;
|
| // Radii order is UL, UR, LR, LL. Use Corner enum to index into fRadii[]
|
|
|