Move the code over using the same template type approach previously used for willPlay...
authortomhudson <tomhudson@chromium.org>
Mon, 18 Aug 2014 22:07:13 +0000 (15:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 18 Aug 2014 22:07:13 +0000 (15:07 -0700)
commit60c2a79cfa8ceebcbafc243407564dc71f5e3b4f
tree6ad04385d0ec4aaf3d6ecc89eeec10eead08118e
parentf128f53a5bc36e2a991302cb40848df580ad515f
Move the code over using the same template type approach previously used for willPlayBackBitmaps in skbug.com/2702.

Also unifies that flag and this one into a struct so they and others can be computed together. The struct is stored const to enforce lifetime expectations. Adds a few new cases to the unit test.

BUG=skia:2700
R=mtklein@google.com, reed@google.com, robertphillips@google.com, tomhudson@google.com

Author: tomhudson@chromium.org

Review URL: https://codereview.chromium.org/364823009
gyp/core.gypi
include/core/SkPicture.h
src/core/SkPicture.cpp
src/core/SkRecordAnalysis.cpp [deleted file]
src/core/SkRecordAnalysis.h [deleted file]
tests/PictureTest.cpp
tests/RecordTest.cpp