diff options
author | Cary Clark <caryclark@skia.org> | 2018-06-12 16:49:49 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-13 17:21:16 +0000 |
commit | 1e447dfb7702460fc3dea5634c1e69d274b1b739 (patch) | |
tree | e5672237f39e292bc5c790bf72ee14830eed5b43 /src/core/SkRRectPriv.h | |
parent | 4010c792c6bd0378087225ae16b0131bd2c303f2 (diff) |
minor fixes to SkRRect
Move methods that are not publicly callable
to SkRRectPriv.h. Name params, add a trailing
comma to the enum list.
R=reed@google.com,bsalomon@google.com
Bug: skia:6898
Change-Id: If93f712656dde563567a647624e58ce9a9d74494
Reviewed-on: https://skia-review.googlesource.com/134423
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'src/core/SkRRectPriv.h')
-rw-r--r-- | src/core/SkRRectPriv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/SkRRectPriv.h b/src/core/SkRRectPriv.h index ea277f7f33..226af247cd 100644 --- a/src/core/SkRRectPriv.h +++ b/src/core/SkRRectPriv.h @@ -10,6 +10,9 @@ #include "SkRRect.h" +class SkRBuffer; +class SkWBuffer; + class SkRRectPriv { public: static bool IsCircle(const SkRRect& rr) { @@ -30,6 +33,10 @@ public: } static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero); + + static bool ReadFromBuffer(SkRBuffer* buffer, SkRRect* rr); + + static void WriteToBuffer(const SkRRect& rr, SkWBuffer* buffer); }; #endif |