Once Chromium starts holding on to paths and we can actually reuse cached path data...
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 7 Mar 2014 18:42:15 +0000 (18:42 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 7 Mar 2014 18:42:15 +0000 (18:42 +0000)
commit8c2ee5963505cdbe128f68d67f064a3901d22a3c
treeabb06d179c019cb80fe7bbdc78abb5a66d9e113b
parent0fd5270ad69f5b99852d544158c989d2deda2c11
Once Chromium starts holding on to paths and we can actually reuse cached path data (e.g., masks & geometry) we will need a way to preserve that reuse in the skps. This CL begins adding that capability. More analysis & profiling needs to be done before it is always enabled.

When enabled it does make the disabled path de-duping test in the Canvas unit test pass.

BUG=skia:507
R=bsalomon@google.com, mtklein@google.com

Author: robertphillips@google.com

Review URL: https://codereview.chromium.org/190923002

git-svn-id: http://skia.googlecode.com/svn/trunk@13709 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkPathHeap.cpp
src/core/SkPathHeap.h
src/core/SkPictureRecord.cpp
tests/CanvasTest.cpp