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

Issue 1771033003: gfx::Image: Added thread checker. (Closed)

Created:
4 years, 9 months ago by Matt Giuca
Modified:
3 years, 5 months ago
Reviewers:
CC:
chromium-reviews, tapted, rsesek+watch_chromium.org, Matt Giuca, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

gfx::Image: Added thread checker. In Debug builds, this will check-fail if an image is used from two threads without being properly handed off or temporarily disabled. Added hand-offs / disables for known locations where images are passed to a new thread without retaining a reference on the old thread. BUG=600229

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Safely detach from thread in UpdateShortcutWorker. #

Patch Set 4 : BrowserThemePack: Fix thread safety (add safe detachments) and also fix comments. #

Patch Set 5 : BrowserThemePack: Comment. #

Patch Set 6 : Rebase. #

Patch Set 7 : Another DetachFromThread. #

Patch Set 8 : UpdateShortcutWorker: Copy ImageSkias to new Images to avoid thread-unsafe usage. #

Patch Set 9 : Rebase. #

Patch Set 10 : Rebase. #

Patch Set 11 : Remove UpdateShortcutWorker changes; instead just disable thread checking. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -6 lines) Patch
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 6 7 8 9 3 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/web_applications/update_shortcut_worker_win.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/web_applications/web_app.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/web_applications/web_app_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gfx/image/image.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +24 lines, -0 lines 0 comments Download
M ui/gfx/image/image.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +40 lines, -2 lines 0 comments Download
M ui/gfx/image/image_family.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M ui/gfx/image/image_family.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1771033003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1771033003/1
4 years, 9 months ago (2016-03-08 08:21:19 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/191726)
4 years, 9 months ago (2016-03-08 08:55:04 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1771033003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1771033003/20001
4 years, 8 months ago (2016-04-05 07:50:31 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/191215)
4 years, 8 months ago (2016-04-05 08:26:43 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1771033003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1771033003/60001
4 years, 8 months ago (2016-04-07 05:57:21 UTC) #11
Matt Giuca
3 years, 5 months ago (2017-07-20 05:54:54 UTC) #15
Message was sent while issue was closed.
I realised there is a much better way to deal with the false positives than
manually annotating each safe handoff site: https://crbug.com/600229#c5.
Abandoning in favour of https://chromium-review.googlesource.com/c/578750/.

Powered by Google App Engine
This is Rietveld 408576698