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

Unified Diff: include/core/SkRegion.h

Issue 19366008: Add getRectCount to SkRegtion (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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/SkRegion.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkRegion.h
===================================================================
--- include/core/SkRegion.h (revision 10113)
+++ include/core/SkRegion.h (working copy)
@@ -86,6 +86,12 @@
const SkIRect& getBounds() const { return fBounds; }
/**
+ * Returns the number of rects that comprise this region.
reed1 2013/07/17 19:14:36 I'd like to make the definition a little fuzzier,
vmpstr 2013/07/17 19:59:08 Done.
+ * Experimental: please do not use this unless absolutely necessary.
+ */
+ int getRectCount() const;
+
+ /**
* Returns true if the region is non-empty, and if so, appends the
* boundary(s) of the region to the specified path.
* If the region is empty, returns false, and path is left unmodified.
« no previous file with comments | « no previous file | src/core/SkRegion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698