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

Issue 2502853003: Make OffscreenCanvas histogram thread safe (Closed)

Created:
4 years, 1 month ago by xidachen
Modified:
4 years, 1 month ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, krit, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, pdr+graphicswatchlist_chromium.org, jbroman, Justin Novosad, Rik, f(malita), blink-reviews, danakj+watch_chromium.org, ajuma+watch_chromium.org, Stephen Chennney, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make OffscreenCanvas histogram thread safe In OffscreenCanvasFrameDispatcherImpl::dispatchFrame, we have a timer histogram at the end of this function which uses DEFINE_STATIC_LOCAL. This is not thread safe in the cases where multiple worker commit at the same time. This CL makes the timer histogram thread safe. A layout test has been added to make sure that the test doesn't crash. BUG=663916 Committed: https://crrev.com/e9ccbda7993554fbdeab8810be5e4ac3ac669f8d Cr-Commit-Position: refs/heads/master@{#432333}

Patch Set 1 #

Total comments: 2

Patch Set 2 : address comments #

Total comments: 1

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -25 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp View 5 chunks +26 lines, -25 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
xidachen
PTAL
4 years, 1 month ago (2016-11-15 19:13:31 UTC) #3
Justin Novosad
https://codereview.chromium.org/2502853003/diff/1/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html File third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html (right): https://codereview.chromium.org/2502853003/diff/1/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html#newcode12 third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html:12: <script id="myWorker2" type="text/worker"> No need for two identical worker ...
4 years, 1 month ago (2016-11-15 19:44:55 UTC) #4
xidachen
https://codereview.chromium.org/2502853003/diff/1/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html File third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html (right): https://codereview.chromium.org/2502853003/diff/1/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html#newcode12 third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html:12: <script id="myWorker2" type="text/worker"> On 2016/11/15 19:44:55, Justin Novosad wrote: ...
4 years, 1 month ago (2016-11-15 19:49:02 UTC) #5
Justin Novosad
lgtm https://codereview.chromium.org/2502853003/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html File third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html (right): https://codereview.chromium.org/2502853003/diff/20001/third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html#newcode28 third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-multiple-worker-commit.html:28: var worker1 = makeWorker(document.getElementById("myWorker").textContent); Nit: no need for ...
4 years, 1 month ago (2016-11-15 20:24:58 UTC) #6
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/2502853003/40001
4 years, 1 month ago (2016-11-16 00:54:49 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-16 01:22:16 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 01:25:52 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e9ccbda7993554fbdeab8810be5e4ac3ac669f8d
Cr-Commit-Position: refs/heads/master@{#432333}

Powered by Google App Engine
This is Rietveld 408576698