Index: include/core/SkPixelRef.h |
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h |
index ec4937bea0294e2c9ab658aff517bae35b8b9f08..d4c35323bbf3b713e22ac79d2ec7fb73026e2c9c 100644 |
--- a/include/core/SkPixelRef.h |
+++ b/include/core/SkPixelRef.h |
@@ -244,10 +244,15 @@ protected: |
acquire a mutex for thread safety, so this method need not do that. |
*/ |
virtual void* onLockPixels(SkColorTable**) = 0; |
- /** Called when the lock count goes from 1 to 0. The caller will have |
- already acquire a mutex for thread safety, so this method need not do |
- that. |
- */ |
+ |
+ /** |
+ * Called when the lock count goes from 1 to 0. The caller will have |
+ * already acquire a mutex for thread safety, so this method need not do |
+ * that. |
+ * |
+ * If the previous call to onLockPixels failed (i.e. returned NULL), then |
+ * the onUnlockPixels will NOT be called. |
+ */ |
virtual void onUnlockPixels() = 0; |
/** Default impl returns true */ |