aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-12-13 14:17:29 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-13 19:42:10 +0000
commitb5213b88e89dbbd17bf06de588d9d4e98cf9ce2f (patch)
tree969b51c2a7edf5925df0cbea6560386876bb4257 /include
parent316b746a53440dabf1b833622d0583f2a948b5a3 (diff)
document default serialization behavior (briefly)
Bug: skia: Change-Id: Ic3cb3d6a211c7da173a3d637403f7e1c93902f2c Reviewed-on: https://skia-review.googlesource.com/84740 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkSerialProcs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkSerialProcs.h b/include/core/SkSerialProcs.h
index e1f4c61455..cd8773255c 100644
--- a/include/core/SkSerialProcs.h
+++ b/include/core/SkSerialProcs.h
@@ -16,6 +16,10 @@
* A serial-proc is asked to serialize the specified object (e.g. picture or image).
* If a data object is returned, it will be used (even if it is zero-length).
* If null is returned, then Skia will take its default action.
+ *
+ * The default action for pictures is to use Skia's internal format.
+ * The default action for images is to encode using PNG.
+ * The default action for typefaces is to use Skia's internal format.
*/
typedef sk_sp<SkData> (*SkSerialPictureProc)(SkPicture*, void* ctx);