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

Issue 1844083002: Color parsing in CSSParser: avoid using ColorValueCache on worker thread (Closed)

Created:
4 years, 8 months ago by xlai (Olivia)
Modified:
4 years, 8 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Color parsing in CSSParser: avoid using ColorValueCache on worker thread ColorValueCache is one of the many heap hashmap that CSSValuePool (a global static instance) maintains to store re-usable CSS Color values. It is not thread-safe; thus it is problematic when new CSS Color values are inserted into it and later retrieved from it, on worker threads. Because making CSSParser thread-safe is not a trivial effort, this patch is a temporary (and possibly permanent depending on discussions) solution for the correct color parsing of OffscreenCanvas on a worker. BUG=598706 Committed: https://crrev.com/4c51c29704df5572015f4d4b12589c9e6dca437c Cr-Commit-Position: refs/heads/master@{#384448}

Patch Set 1 #

Patch Set 2 : Layout Tests #

Patch Set 3 : Compress layout tests; TODO bug #

Total comments: 1

Patch Set 4 : Nits #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -7 lines) Patch
M third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-fillRect-in-worker.html View 1 2 3 4 2 chunks +25 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-fillRect-in-worker-expected.html View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSValuePool.cpp View 1 2 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
xlai (Olivia)
Perhaps we can include this patch into the doc as well?
4 years, 8 months ago (2016-03-30 21:33:10 UTC) #2
xlai (Olivia)
Added layout tests for Hexademical color and RGB color specifically.
4 years, 8 months ago (2016-03-31 19:21:02 UTC) #5
xlai (Olivia)
Compressing 3 layout tests into 1. This is also an example when OffscreenCanvas.transferToImageBitmap is called ...
4 years, 8 months ago (2016-03-31 21:46:42 UTC) #6
Justin Novosad
lgtm with nit https://codereview.chromium.org/1844083002/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-fillRect-in-worker.html File third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-fillRect-in-worker.html (right): https://codereview.chromium.org/1844083002/diff/40001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-fillRect-in-worker.html#newcode5 third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-fillRect-in-worker.html:5: <canvas id='output2' width='100' height='100' style='background:blue'></canvas> Just ...
4 years, 8 months ago (2016-03-31 21:52:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844083002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844083002/60001
4 years, 8 months ago (2016-03-31 22:08:04 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/12042) ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-03-31 22:11:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1844083002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1844083002/80001
4 years, 8 months ago (2016-03-31 23:08:50 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-01 00:32:57 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 00:34:07 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4c51c29704df5572015f4d4b12589c9e6dca437c
Cr-Commit-Position: refs/heads/master@{#384448}

Powered by Google App Engine
This is Rietveld 408576698