diff options
author | 2016-08-26 06:37:45 -0700 | |
---|---|---|
committer | 2016-08-26 06:37:45 -0700 | |
commit | dca352e2d42cfe698573947b3d11abc1eaade160 (patch) | |
tree | d07df14c1d14d5588d88dff7448cc9d00389c2b7 /include | |
parent | ad2344693c70f13d5e4216df8458b4d907395bde (diff) |
drawRegion() cleanups
(1) Move implementation to the cpp.
(2) Check for the isRect() case.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2286693002
Review-Url: https://codereview.chromium.org/2286693002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkCanvas.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index d9b3282d3e..acf0ad2a54 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -707,13 +707,7 @@ public: @param region The region to be drawn @param paint The paint used to draw the region */ - void drawRegion(const SkRegion& region, const SkPaint& paint) { - if (region.isEmpty()) { - return; - } - - this->onDrawRegion(region, paint); - } + void drawRegion(const SkRegion& region, const SkPaint& paint); /** Draw the specified oval using the specified paint. The oval will be filled or framed based on the Style in the paint. |