aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/core/SkBitmap.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 91e35208af..8ce3f67604 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -64,16 +64,21 @@ public:
kConfigCount
};
- /** Default construct creates a bitmap with zero width and height, and no pixels.
- Its config is set to kNo_Config.
- */
+ /**
+ * Default construct creates a bitmap with zero width and height, and no pixels.
+ * Its config is set to kNo_Config.
+ */
SkBitmap();
- /** Constructor initializes the new bitmap by copying the src bitmap. All fields are copied,
- but ownership of the pixels remains with the src bitmap.
- */
+
+ /**
+ * Copy the settings from the src into this bitmap. If the src has pixels
+ * allocated, they will be shared, not copied, so that the two bitmaps will
+ * reference the same memory for the pixels. If a deep copy is needed,
+ * where the new bitmap has its own separate copy of the pixels, use
+ * deepCopyTo().
+ */
SkBitmap(const SkBitmap& src);
- /** Decrements our (shared) pixel ownership if needed.
- */
+
~SkBitmap();
/** Copies the src bitmap into this bitmap. Ownership of the src bitmap's pixels remains