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

Issue 1555953004: Create debug only SkSingleOwner (Closed)

Created:
4 years, 11 months ago by joshua.litt
Modified:
4 years, 11 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Create debug only SkSingleOwner This is so Gpu code can guard against improper multithreaded usage in debug builds TBR=bsalomon@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1555953004 Committed: https://skia.googlesource.com/skia/+/1de610a5287cf61d4f3a1fdc7413bd74827a8b6a

Patch Set 1 #

Patch Set 2 : added assertNotHeld #

Patch Set 3 : add sentinels to GrContext #

Total comments: 7

Patch Set 4 : create SkSingleOwner #

Total comments: 2

Patch Set 5 : add GrDrawContext #

Patch Set 6 : tweaks #

Patch Set 7 : tweaks #

Patch Set 8 : tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -2 lines) Patch
M gyp/gpu.gypi View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M include/gpu/GrDrawContext.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
A include/private/GrSingleOwner.h View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 21 chunks +32 lines, -1 line 0 comments Download
M src/gpu/GrDrawContext.cpp View 1 2 3 4 23 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (14 generated)
joshualitt
I realize this is not really ideal, but I think for debug only purposes it ...
4 years, 11 months ago (2016-01-05 21:59:26 UTC) #3
mtklein
why don't you make sure it works by including some code that uses it?
4 years, 11 months ago (2016-01-05 22:00:59 UTC) #4
joshualitt
On 2016/01/05 22:00:59, mtklein wrote: > why don't you make sure it works by including ...
4 years, 11 months ago (2016-01-05 22:10:33 UTC) #5
joshualitt
4 years, 11 months ago (2016-01-05 22:11:07 UTC) #7
robertphillips
Ganesh-side lgtm
4 years, 11 months ago (2016-01-05 22:33:49 UTC) #9
mtklein
https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp#newcode87 src/gpu/GrContext.cpp:87: TAKE_DEBUG_MUTEX What is the constraint that you are trying ...
4 years, 11 months ago (2016-01-05 22:47:50 UTC) #10
mtklein
https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp#newcode208 src/gpu/GrContext.cpp:208: void GrContext::flush(int flagsBitfield) { On 2016/01/05 22:47:50, mtklein wrote: ...
4 years, 11 months ago (2016-01-05 22:55:45 UTC) #11
joshualitt
https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp#newcode87 src/gpu/GrContext.cpp:87: TAKE_DEBUG_MUTEX On 2016/01/05 22:47:50, mtklein wrote: > What is ...
4 years, 11 months ago (2016-01-06 14:03:27 UTC) #12
mtklein
https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp#newcode87 src/gpu/GrContext.cpp:87: TAKE_DEBUG_MUTEX On 2016/01/06 14:03:27, joshualitt wrote: > On 2016/01/05 ...
4 years, 11 months ago (2016-01-06 14:33:46 UTC) #13
joshualitt
On 2016/01/06 14:33:46, mtklein wrote: > https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp > File src/gpu/GrContext.cpp (right): > > https://codereview.chromium.org/1555953004/diff/40001/src/gpu/GrContext.cpp#newcode87 > ...
4 years, 11 months ago (2016-01-06 15:06:20 UTC) #15
mtklein
https://codereview.chromium.org/1555953004/diff/60001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1555953004/diff/60001/include/gpu/GrContext.h#newcode393 include/gpu/GrContext.h:393: // In debug builds we take a debug mutex ...
4 years, 11 months ago (2016-01-06 15:08:27 UTC) #16
joshualitt
https://codereview.chromium.org/1555953004/diff/60001/include/gpu/GrContext.h File include/gpu/GrContext.h (right): https://codereview.chromium.org/1555953004/diff/60001/include/gpu/GrContext.h#newcode393 include/gpu/GrContext.h:393: // In debug builds we take a debug mutex ...
4 years, 11 months ago (2016-01-06 15:09:47 UTC) #17
mtklein
> This will end up being used by a number of Gr* classes and SkGpuDevice. ...
4 years, 11 months ago (2016-01-06 15:16:03 UTC) #18
joshualitt
On 2016/01/06 15:16:03, mtklein wrote: > > This will end up being used by a ...
4 years, 11 months ago (2016-01-06 15:22:17 UTC) #19
mtklein
On 2016/01/06 15:22:17, joshualitt wrote: > On 2016/01/06 15:16:03, mtklein wrote: > > > This ...
4 years, 11 months ago (2016-01-06 15:23:58 UTC) #20
joshualitt
On 2016/01/06 15:23:58, mtklein wrote: > On 2016/01/06 15:22:17, joshualitt wrote: > > On 2016/01/06 ...
4 years, 11 months ago (2016-01-06 15:40:31 UTC) #21
mtklein
lgtm
4 years, 11 months ago (2016-01-06 15:42:54 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555953004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555953004/120001
4 years, 11 months ago (2016-01-06 15:43:26 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/5095)
4 years, 11 months ago (2016-01-06 15:44:27 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555953004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555953004/140001
4 years, 11 months ago (2016-01-06 16:08:30 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/5041)
4 years, 11 months ago (2016-01-06 16:09:52 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1555953004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1555953004/140001
4 years, 11 months ago (2016-01-06 16:16:18 UTC) #35
commit-bot: I haz the power
4 years, 11 months ago (2016-01-06 16:26:12 UTC) #37
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/1de610a5287cf61d4f3a1fdc7413bd74827a8b6a

Powered by Google App Engine
This is Rietveld 408576698