diff options
author | Mike Reed <reed@google.com> | 2018-01-18 15:57:38 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-18 21:14:19 +0000 |
commit | e97e792c79afd01fe1d83e5d1e94918145794c54 (patch) | |
tree | 43dc60bf6ddffa55b0bd86a1a4a17f8819b21aca /docs | |
parent | 9ca27849d8259e4b35243094bdca969612efba2f (diff) |
validate paint setters in readbuffer
Bug: skia:7425
Change-Id: I55213bc206cf5cfb8cbf4fbe8a682efd6eae59fa
Reviewed-on: https://skia-review.googlesource.com/96860
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/SkPaint_Reference.bmh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/SkPaint_Reference.bmh b/docs/SkPaint_Reference.bmh index b19feb29ed..b5b31498ea 100644 --- a/docs/SkPaint_Reference.bmh +++ b/docs/SkPaint_Reference.bmh @@ -577,7 +577,7 @@ can reconstitute the paint at a later time. # ------------------------------------------------------------------------------ -#Method void unflatten(SkReadBuffer& buffer) +#Method bool unflatten(SkReadBuffer& buffer) Populates Paint, typically from a serialized stream, created by calling flatten() at an earlier time. @@ -587,6 +587,8 @@ by the client. #Param buffer serialized data describing Paint content ## +#Return false if the buffer contained invalid data for initializing the paint. ## + # why is unflatten() public? #Bug 6172 ## |