aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkBitmap.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-16 13:04:22 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-16 13:04:22 +0000
commit5dd510f1d277a31752a4c6046c4e42385605a393 (patch)
tree5f419be35f210867e43bfbe2561efbf7aa0362f4 /include/core/SkBitmap.h
parent93d63d312e38782a7ef51290c4fe87d207596716 (diff)
update dox for copy-constructor
git-svn-id: http://skia.googlecode.com/svn/trunk@3966 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkBitmap.h')
-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