From b5213b88e89dbbd17bf06de588d9d4e98cf9ce2f Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Wed, 13 Dec 2017 14:17:29 -0500 Subject: document default serialization behavior (briefly) Bug: skia: Change-Id: Ic3cb3d6a211c7da173a3d637403f7e1c93902f2c Reviewed-on: https://skia-review.googlesource.com/84740 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- include/core/SkSerialProcs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 (*SkSerialPictureProc)(SkPicture*, void* ctx); -- cgit v1.2.3