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

Issue 155963003: SkOnce in is_lcd_supported instead of hand rolled double-checked locking. (Closed)

Created:
6 years, 10 months ago by mtklein
Modified:
6 years, 10 months ago
Reviewers:
bungeman-skia, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

SkOnce in is_lcd_supported instead of hand rolled double-checked locking. BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=13387

Patch Set 1 #

Total comments: 2

Patch Set 2 : Support already-existin lock. #

Patch Set 3 : tweaks #

Patch Set 4 : style #

Total comments: 1

Patch Set 5 : SK -> Sk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -48 lines) Patch
M include/core/SkOnce.h View 1 2 3 4 5 chunks +48 lines, -9 lines 0 comments Download
M include/core/SkThread.h View 1 1 chunk +0 lines, -29 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 3 chunks +16 lines, -10 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mtklein
TSAN is catching the unprotected if (!gLCDSupportValid) read.
6 years, 10 months ago (2014-02-05 17:08:37 UTC) #1
bungeman-skia
https://codereview.chromium.org/155963003/diff/1/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/155963003/diff/1/src/ports/SkFontHost_FreeType.cpp#newcode179 src/ports/SkFontHost_FreeType.cpp:179: SkAutoMutexAcquire lock(gFTMutex); Why are we still taking this lock, ...
6 years, 10 months ago (2014-02-05 18:02:03 UTC) #2
mtklein
https://codereview.chromium.org/155963003/diff/1/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/155963003/diff/1/src/ports/SkFontHost_FreeType.cpp#newcode179 src/ports/SkFontHost_FreeType.cpp:179: SkAutoMutexAcquire lock(gFTMutex); On 2014/02/05 18:02:04, bungeman1 wrote: > Why ...
6 years, 10 months ago (2014-02-05 18:10:26 UTC) #3
mtklein
On 2014/02/05 18:10:26, mtklein wrote: > https://codereview.chromium.org/155963003/diff/1/src/ports/SkFontHost_FreeType.cpp > File src/ports/SkFontHost_FreeType.cpp (right): > > https://codereview.chromium.org/155963003/diff/1/src/ports/SkFontHost_FreeType.cpp#newcode179 > ...
6 years, 10 months ago (2014-02-05 19:00:17 UTC) #4
bungeman-skia
lgtm https://codereview.chromium.org/155963003/diff/110001/include/core/SkOnce.h File include/core/SkOnce.h (right): https://codereview.chromium.org/155963003/diff/110001/include/core/SkOnce.h#newcode43 include/core/SkOnce.h:43: // If you've already got a lock and ...
6 years, 10 months ago (2014-02-05 19:12:58 UTC) #5
mtklein
On 2014/02/05 19:12:58, bungeman1 wrote: > lgtm > > https://codereview.chromium.org/155963003/diff/110001/include/core/SkOnce.h > File include/core/SkOnce.h (right): > ...
6 years, 10 months ago (2014-02-10 18:17:23 UTC) #6
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 10 months ago (2014-02-10 18:17:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/155963003/160001
6 years, 10 months ago (2014-02-10 18:17:50 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-10 18:17:53 UTC) #9
commit-bot: I haz the power
Presubmit check for 155963003-160001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 10 months ago (2014-02-10 18:17:53 UTC) #10
mtklein
+reed for include/core
6 years, 10 months ago (2014-02-10 18:18:23 UTC) #11
reed1
lgtm
6 years, 10 months ago (2014-02-10 19:43:38 UTC) #12
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 10 months ago (2014-02-10 19:43:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/155963003/160001
6 years, 10 months ago (2014-02-10 19:44:10 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-10 19:58:52 UTC) #15
Message was sent while issue was closed.
Change committed as 13387

Powered by Google App Engine
This is Rietveld 408576698