simplify SkRRect serialization
authorMike Klein <mtklein@chromium.org>
Fri, 7 Apr 2017 02:34:59 +0000 (22:34 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 7 Apr 2017 13:36:54 +0000 (13:36 +0000)
commitca878ccfb5d514b4e7baea9e6d410b0085211b40
treec9888c407981a992a885f4a20e3509036c702e27
parent3a1ad6fde24e1064dae77f602152399df08f18d8
simplify SkRRect serialization

I think this happens to fix the particular issue in the attached bug.
memcpy() is kind of the swiss army knife as far as strict aliasing is
concerned... you're always allowed to use it.

The generated code for writeToMemory() is unchanged, and
readFromMemory() gets a bit better looking.

BUG=skia:5105

Change-Id: Ib5bf96600f1138650c004ced2d696e9a4ba83ca7
Reviewed-on: https://skia-review.googlesource.com/11682
Reviewed-by: Cary Clark <caryclark@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
src/core/SkRRect.cpp