commit | acd2f5cddc631d5008a04da483d630968df307c9 | [log] [tgz] |
---|---|---|
author | fmalita <fmalita@chromium.org> | Tue Nov 08 07:13:45 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Tue Nov 08 07:13:45 2016 -0800 |
tree | c0e57e4d5c07d2762f2d6bebe096a80be51e3866 | |
parent | 9075634d60cc8ce979e3007d4ba1d0e57afc6644 [diff] |
Fix DM race in SVGSrc The SVG source currently attempts to build the DOM lazily, in response to draw() or size() calls. But apprently DM may call these concurrently. Build the DOM in the constructor instead, to avoid races (and the need for synchronization). R=robertphillips@google.com,mtklein@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2482123003 Review-Url: https://codereview.chromium.org/2482123003