aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-06-12 16:49:49 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-13 17:21:16 +0000
commit1e447dfb7702460fc3dea5634c1e69d274b1b739 (patch)
treee5672237f39e292bc5c790bf72ee14830eed5b43 /include/core
parent4010c792c6bd0378087225ae16b0131bd2c303f2 (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 'include/core')
-rw-r--r--include/core/SkRRect.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h
index 0acc7169ba..dae5a0cdde 100644
--- a/include/core/SkRRect.h
+++ b/include/core/SkRRect.h
@@ -13,8 +13,6 @@
class SkPath;
class SkMatrix;
-class SkRBuffer;
-class SkWBuffer;
// Path forward:
// core work
@@ -51,8 +49,8 @@ public:
/** Default initialized to a rrect at the origin with zero width and height. */
SkRRect() = default;
- SkRRect(const SkRRect&) = default;
- SkRRect& operator=(const SkRRect&) = default;
+ SkRRect(const SkRRect& rrect) = default;
+ SkRRect& operator=(const SkRRect& rrect) = default;
/**
* Enum to capture the various possible subtypes of RR. Accessed
@@ -201,7 +199,7 @@ public:
kUpperLeft_Corner,
kUpperRight_Corner,
kLowerRight_Corner,
- kLowerLeft_Corner
+ kLowerLeft_Corner,
};
const SkRect& rect() const { return fRect; }
@@ -278,7 +276,6 @@ public:
* a multiple of 4. Return kSizeInMemory.
*/
size_t writeToMemory(void* buffer) const;
- void writeToBuffer(SkWBuffer*) const;
/**
* Reads the rrect from the specified buffer
@@ -292,7 +289,6 @@ public:
* 0 if there was not enough memory available
*/
size_t readFromMemory(const void* buffer, size_t length);
- bool readFromBuffer(SkRBuffer*);
/**
* Transform by the specified matrix, and put the result in dst.