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

Unified Diff: include/core/SkImageGenerator.h

Issue 99303003: SkDiscardablePixelRef objects are now marked immutable. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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/lazy/SkDiscardablePixelRef.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageGenerator.h
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h
index e43fbc1b285891734d8a64012602e2745a9a05c2..c56e62a9d671642be8b1db78b187e2a22aea73fc 100644
--- a/include/core/SkImageGenerator.h
+++ b/include/core/SkImageGenerator.h
@@ -37,6 +37,9 @@ public:
* Return some information about the image, allowing the owner of
* this object to allocate pixels.
*
+ * Repeated calls to this function should give the same results,
+ * allowing the PixelRef to be immutable.
+ *
* @return false if anything goes wrong.
*/
virtual bool getInfo(SkImageInfo* info) = 0;
@@ -46,6 +49,9 @@ public:
* least (info.fHeight - 1) * rowBytes + (info.fWidth *
* bytesPerPixel)
*
+ * Repeated calls to this function should give the same results,
+ * allowing the PixelRef to be immutable.
+ *
* @param info A description of the format (config, size)
* expected by the caller. This can simply be identical
* to the info returned by getInfo().
« no previous file with comments | « no previous file | src/lazy/SkDiscardablePixelRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698