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

Unified Diff: include/core/SkSurface.h

Issue 830033003: change API contract: disallow zero-sized images or surfaces (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 12 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 | « include/core/SkImage.h ('k') | src/image/SkImage_Raster.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkSurface.h
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index 019bf216ce40b3c017405ecfad58452b23458a17..aa1e2cc2bbc9c76337ec324cae6868c090985fc2 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -24,6 +24,9 @@ class GrRenderTarget;
*
* To draw into a canvas, first create the appropriate type of Surface, and
* then request the canvas from the surface.
+ *
+ * SkSurface always has non-zero dimensions. If there is a request for a new surface, and either
+ * of the requested dimensions are zero, then NULL will be returned.
*/
class SK_API SkSurface : public SkRefCnt {
public:
« no previous file with comments | « include/core/SkImage.h ('k') | src/image/SkImage_Raster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698