Dedup SkPaths by gen-ID when going to .skp
authormtklein <mtklein@chromium.org>
Fri, 30 Oct 2015 12:24:58 +0000 (05:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 30 Oct 2015 12:24:59 +0000 (05:24 -0700)
commitc2e2977014c4581aed5da435fc2b7eba38e777b6
treef1299b787dd196e414298186b9c400fda91e78af
parent13391dd97209f36c71bc18cc75084f74c2f6af15
Dedup SkPaths by gen-ID when going to .skp

We're all set up to serialize and deserialze paths by an integer ID,
but we're just not deduping any paths (every path gets a new ID).

This turns on deduping.  This should mean the number of paths in a
deserialized SkPicture are the same as when it was recorded.

No diffs:
https://gold.skia.org/search2?issue=1409373011&unt=true&query=source_type%3Dgm&master=false

BUG=skia:4527

Review URL: https://codereview.chromium.org/1409373011
src/core/SkPictureData.cpp
src/core/SkPictureRecord.cpp
src/core/SkPictureRecord.h