Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Issue 2482123003: Fix DM race in SVGSrc (Closed)

Created:
4 years, 1 month ago by f(malita)
Modified:
4 years, 1 month ago
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/acd2f5cddc631d5008a04da483d630968df307c9

Patch Set 1 #

Patch Set 2 : parse error message tweak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -38 lines) Patch
M dm/DMSrcSink.h View 1 chunk +3 lines, -5 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 chunks +30 lines, -33 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
f(malita)
Alternatively, we could add a mutex and synchronize ensureDOM(). But I don't think lazy parsing ...
4 years, 1 month ago (2016-11-08 14:42:10 UTC) #2
robertphillips
lgtm
4 years, 1 month ago (2016-11-08 14:51:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2482123003/20001
4 years, 1 month ago (2016-11-08 15:12:47 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/acd2f5cddc631d5008a04da483d630968df307c9
4 years, 1 month ago (2016-11-08 15:13:48 UTC) #14
mtklein_C
Right, DM uses Srcs concurrently when possible unless they override serial() to return true, in ...
4 years, 1 month ago (2016-11-08 15:42:37 UTC) #16
mtklein_C
Is it safe to revert https://skia-review.googlesource.com/c/4526/ now?
4 years, 1 month ago (2016-11-08 15:43:36 UTC) #17
f(malita)
4 years, 1 month ago (2016-11-08 16:10:08 UTC) #18
Message was sent while issue was closed.
On 2016/11/08 15:43:36, mtklein_C wrote:
> Is it safe to revert https://skia-review.googlesource.com/c/4526/ now?

Should be safe.  I just reverted, let's see.

Powered by Google App Engine
This is Rietveld 408576698