diff options
author | Nader Jawad <njawad@google.com> | 2018-09-27 12:27:36 -0700 |
---|---|---|
committer | Nader Jawad <njawad@google.com> | 2018-10-02 17:12:15 -0700 |
commit | adfe1d991bbc65dbf80f16f493b88a72adc701d6 (patch) | |
tree | 15fe71348a6951b6df9c0b8785833839473862eb /libs/hwui/SkiaCanvas.h | |
parent | 2616b08d4d8295dd8cd14565e49617e8ac1ad68c (diff) |
Added support for Canvas#drawDoubleRoundRect in application Canvas API
Exposed Skia's underlying drawDRRect method used to draw a double
rounded rectangle
Bug: 117181396
Test: Added test case to verify Canvas#drawDRRect and re-ran CanvasTests
Change-Id: I4e1954c8ffc82811dc541488d1df9b37309faf51
Diffstat (limited to 'libs/hwui/SkiaCanvas.h')
-rw-r--r-- | libs/hwui/SkiaCanvas.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/SkiaCanvas.h b/libs/hwui/SkiaCanvas.h index 24b7ec6d5c7b..3a877cf84010 100644 --- a/libs/hwui/SkiaCanvas.h +++ b/libs/hwui/SkiaCanvas.h @@ -107,6 +107,10 @@ public: virtual void drawRegion(const SkRegion& region, const SkPaint& paint) override; virtual void drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) override; + + virtual void drawDoubleRoundRect(const SkRRect& outer, const SkRRect& inner, + const SkPaint& paint) override; + virtual void drawCircle(float x, float y, float radius, const SkPaint& paint) override; virtual void drawOval(float left, float top, float right, float bottom, const SkPaint& paint) override; |