Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: include/core/SkCanvas.h

Issue 2286693002: drawRegion() cleanups (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index d9b3282d3e97284966bee8b25d2aa159983825d3..acf0ad2a54febf4cb6bbdd14a9112e81a3c8573f 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.
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698