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

Unified Diff: include/core/SkSurface.h

Issue 2066903003: Document SkSurface::MakeRaster's memory initialization (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | tests/SurfaceTest.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 a092a81ca592745fc599804952f680194f29f437..e93413d3afea400c27fdab065513ac42de596345 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -49,10 +49,10 @@ public:
void* context, const SkSurfaceProps* = nullptr);
/**
- * Return a new surface, with the memory for the pixels automatically allocated, but respecting
- * the specified rowBytes. If rowBytes==0, then a default value will be chosen. If a non-zero
- * rowBytes is specified, then any images snapped off of this surface (via newImageSnapshot())
- * are guaranteed to have the same rowBytes.
+ * Return a new surface, with the memory for the pixels automatically allocated and
+ * zero-initialized, but respecting the specified rowBytes. If rowBytes==0, then a default
reed1 2016/06/15 15:30:35 Do we consistently make this promise for surfaces
f(malita) 2016/06/15 15:36:37 Even if we only do this for raster, it's still wor
bsalomon 2016/06/15 16:18:23 I believe we do this for GPU as well.
+ * value will be chosen. If a non-zero rowBytes is specified, then any images snapped off of
+ * this surface (via makeImageSnapshot()) are guaranteed to have the same rowBytes.
*
* If the requested surface cannot be created, or the request is not a
* supported configuration, NULL will be returned.
« no previous file with comments | « no previous file | tests/SurfaceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698