[SVGDom] Expose intrinsic size info
authorfmalita <fmalita@chromium.org>
Wed, 14 Sep 2016 19:04:30 +0000 (12:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 14 Sep 2016 19:04:30 +0000 (12:04 -0700)
commite1baa7c105dad0f301ce34e5d6d1aa329334ef8c
treec79b25d4ed835bffccd2cbac9a6da433f1e51245
parentbe362774f9b9e8964544a579281603ed995e6e5a
[SVGDom] Expose intrinsic size info

  * expose intrinsic size info on <svg> nodes.

  * tweak the SkSVGDOM constructor to no longer take an container size
    param, but instead default to intrinsic size
  * update clients to call SkSVGDOM::setContainerSize() explicitly, when
    needed

R=robertphillips@google.com,stephana@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2345533002

Review-Url: https://codereview.chromium.org/2345533002
bench/nanobench.cpp
dm/DMSrcSink.cpp
experimental/svg/model/SkSVGDOM.cpp
experimental/svg/model/SkSVGDOM.h
experimental/svg/model/SkSVGSVG.cpp
experimental/svg/model/SkSVGSVG.h
samplecode/SampleSVGFile.cpp
samplecode/SampleSVGPong.cpp