Index: include/core/SkPixelRef.h |
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h |
index b87b0dc114b34958ff36f93ea3d464320334ae60..f50cafafbd6dc3f302c1e7a4190abb4902ac1235 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 */ |