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

Issue 1210143004: SkGlyphCache_Globals: SkMutex -> SkSpinlock (Closed)

Created:
5 years, 5 months ago by herb_g
Modified:
5 years, 5 months ago
Reviewers:
mtklein, mtklein_C, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add RAII for other types of locks. Change SkGlyphCache_Globals to use a SkSpinlock instead of SkMutex. This results in significant performance increase for mpd in nanobench. BUG=skia: Committed: https://skia.googlesource.com/skia/+/3547505278f5f9fe9602ec767c20d461f7a5dab6

Patch Set 1 #

Patch Set 2 : some cleanup #

Total comments: 9

Patch Set 3 : rebase update #

Patch Set 4 : remove tls, move autolock and other #

Total comments: 12

Patch Set 5 : address more comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -91 lines) Patch
M src/core/SkGlyphCache.cpp View 1 2 3 4 11 chunks +49 lines, -59 lines 0 comments Download
M src/core/SkGlyphCache_Globals.h View 1 2 3 4 5 chunks +3 lines, -32 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
herb_g
5 years, 5 months ago (2015-07-08 19:25:35 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210143004/20001
5 years, 5 months ago (2015-07-08 19:26:07 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/1862) Build-Ubuntu-Clang-x86_64-Debug-Trybot on ...
5 years, 5 months ago (2015-07-08 19:26:42 UTC) #6
mtklein
https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h File include/core/SkMutex.h (right): https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h#newcode21 include/core/SkMutex.h:21: class SkScopedLock : SkNoncopyable { Why not just use ...
5 years, 5 months ago (2015-07-08 19:33:47 UTC) #8
reed1
https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h File include/core/SkMutex.h (right): https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h#newcode21 include/core/SkMutex.h:21: class SkScopedLock : SkNoncopyable { For now, I suggest ...
5 years, 5 months ago (2015-07-08 19:36:01 UTC) #10
mtklein
https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h File include/core/SkMutex.h (right): https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h#newcode31 include/core/SkMutex.h:31: class SkAutoLockAcquire : SkNoncopyable { On 2015/07/08 19:36:01, reed1 ...
5 years, 5 months ago (2015-07-08 19:36:34 UTC) #11
reed1
On 2015/07/08 19:36:34, mtklein wrote: > https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h > File include/core/SkMutex.h (right): > > https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h#newcode31 > ...
5 years, 5 months ago (2015-07-08 19:37:24 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210143004/40001
5 years, 5 months ago (2015-07-08 19:41:28 UTC) #14
mtklein
Let me just summarize what I think is a good thing to do: template <typename ...
5 years, 5 months ago (2015-07-08 19:43:57 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/1865)
5 years, 5 months ago (2015-07-08 19:45:06 UTC) #17
herb_g
https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h File include/core/SkMutex.h (right): https://codereview.chromium.org/1210143004/diff/20001/include/core/SkMutex.h#newcode21 include/core/SkMutex.h:21: class SkScopedLock : SkNoncopyable { On 2015/07/08 19:33:47, mtklein ...
5 years, 5 months ago (2015-07-08 20:21:57 UTC) #18
herb_g
There is a single pixel difference in the dm runs: gpu/gm/dcshader.png Is this a problematic ...
5 years, 5 months ago (2015-07-09 13:49:14 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210143004/60001
5 years, 5 months ago (2015-07-09 13:49:35 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-09 13:56:56 UTC) #23
reed1
On 2015/07/09 13:49:14, herb1 wrote: > There is a single pixel difference in the dm ...
5 years, 5 months ago (2015-07-09 14:19:08 UTC) #24
mtklein_C
I have some nits but the broad strokes of this lgtm. https://codereview.chromium.org/1210143004/diff/60001/include/core/SkMutex.h File include/core/SkMutex.h (right): ...
5 years, 5 months ago (2015-07-09 16:46:22 UTC) #26
herb_g
I'm moving the SkMutex.h into a different CL. https://codereview.chromium.org/1210143004/diff/60001/include/core/SkMutex.h File include/core/SkMutex.h (right): https://codereview.chromium.org/1210143004/diff/60001/include/core/SkMutex.h#newcode7 include/core/SkMutex.h:7: On ...
5 years, 5 months ago (2015-07-09 18:21:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210143004/80001
5 years, 5 months ago (2015-07-09 18:22:02 UTC) #30
mtklein_C
lgtm!
5 years, 5 months ago (2015-07-09 18:26:43 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/3547505278f5f9fe9602ec767c20d461f7a5dab6
5 years, 5 months ago (2015-07-09 18:37:41 UTC) #32
qyearsley
On 2015/07/09 18:37:41, commit-bot: I haz the power wrote: > Committed patchset #5 (id:80001) as ...
5 years, 5 months ago (2015-07-10 20:00:08 UTC) #33
qyearsley
5 years, 5 months ago (2015-07-10 20:02:25 UTC) #34
Message was sent while issue was closed.
On 2015/07/10 20:00:08, qyearsley wrote:
> On 2015/07/09 18:37:41, commit-bot: I haz the power wrote:
> > Committed patchset #5 (id:80001) as
> >
https://skia.googlesource.com/skia/+/3547505278f5f9fe9602ec767c20d461f7a5dab6
> 
> Note: This CL co-incided with some performance improvements as measured by a
> test called "blink_perf.canvas", which may also be related :-)
> https://chromeperf.appspot.com/group_report?rev=338149

(But it might also be unrelated. Anyway, performance improvements are always
good.)

Powered by Google App Engine
This is Rietveld 408576698