[SVGDom] Deferred SampleApp parsing
authorfmalita <fmalita@chromium.org>
Mon, 15 Aug 2016 14:48:47 +0000 (07:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 15 Aug 2016 14:48:47 +0000 (07:48 -0700)
commit851d68aa5692103db67433354c7421863d01dbda
tree88a51afdda0c854928958d0f2017e1b3e97caee4
parentd5d3287fe210d74f147e90a3906f5d1eaeb17dbf
[SVGDom] Deferred SampleApp parsing

Parse SVG files in onOnceBeforeDraw() rather than ctor, to avoid
front-loading a bunch of work when passed a loarge number of SVGs.

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

Review-Url: https://codereview.chromium.org/2245993002
samplecode/SampleApp.cpp
samplecode/SampleSVGFile.cpp