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

Issue 364473002: Grant independence to SkBaseMutex on Windows. (Closed)

Created:
6 years, 5 months ago by Tom Hudson
Modified:
6 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Grant independence to SkBaseMutex on Windows. Under POSIX, class SkMutex inherits from struct SkBaseMutex. Since we can't have a POD mutex on Windows, we used to just typedef SkMutex SkBaseMutex there. However, that makes it impossible to forward-declare SkBaseMutex consistently across platforms. With this CL we declare an empty struct SkBaseMutex on Windows, which should have 0 cost but make the compiler happy. R=bungeman, mtklein BUG=skia: Committed: https://skia.googlesource.com/skia/+/cad0cb2a2dd23ceee03f24954c491344aef18c2c

Patch Set 1 #

Total comments: 1

Patch Set 2 : More complete SkBaseMutex implementation #

Patch Set 3 : Too much privacy #

Patch Set 4 : Too much protection #

Patch Set 5 : Ever-baser #

Patch Set 6 : Constructive mutexes #

Total comments: 1

Patch Set 7 : Even more trivial SkMutex #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -9 lines) Patch
M src/ports/SkMutex_win.h View 1 2 3 4 5 6 2 chunks +12 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tomhudson
Is this what you meant? Fired off 3 win trybots to see if it's clean...
6 years, 5 months ago (2014-06-30 22:21:24 UTC) #1
mtklein
https://codereview.chromium.org/364473002/diff/1/src/ports/SkMutex_win.h File src/ports/SkMutex_win.h (right): https://codereview.chromium.org/364473002/diff/1/src/ports/SkMutex_win.h#newcode37 src/ports/SkMutex_win.h:37: struct SkBaseMutex { Don't you have to do it ...
6 years, 5 months ago (2014-06-30 22:24:01 UTC) #2
tomhudson
On 2014/06/30 22:24:01, mtklein wrote: ... > ought to work? Yep, that's what we've been ...
6 years, 5 months ago (2014-06-30 22:30:09 UTC) #3
mtklein
On 2014/06/30 22:30:09, tomhudson wrote: > On 2014/06/30 22:24:01, mtklein wrote: > ... > > ...
6 years, 5 months ago (2014-06-30 22:40:11 UTC) #4
bungeman-skia
On 2014/06/30 22:40:11, mtklein wrote: > On 2014/06/30 22:30:09, tomhudson wrote: > > On 2014/06/30 ...
6 years, 5 months ago (2014-06-30 22:45:39 UTC) #5
tomhudson
On 2014/06/30 22:40:11, mtklein wrote: > So I think in your case you will need ...
6 years, 5 months ago (2014-06-30 22:46:16 UTC) #6
mtklein
> Sigh, I'm afraid you're right. And I'd rather keep doing this - even if ...
6 years, 5 months ago (2014-06-30 22:47:47 UTC) #7
tomhudson
On 2014/06/30 22:47:47, mtklein wrote: > > Sigh, I'm afraid you're right. And I'd rather ...
6 years, 5 months ago (2014-06-30 23:08:09 UTC) #8
mtklein
https://codereview.chromium.org/364473002/diff/100001/src/ports/SkMutex_win.h File src/ports/SkMutex_win.h (right): https://codereview.chromium.org/364473002/diff/100001/src/ports/SkMutex_win.h#newcode73 src/ports/SkMutex_win.h:73: class SkMutex : public SkBaseMutex { Can't just class ...
6 years, 5 months ago (2014-06-30 23:14:46 UTC) #9
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 5 months ago (2014-07-01 13:15:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/364473002/120001
6 years, 5 months ago (2014-07-01 13:15:46 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-01 13:26:53 UTC) #12
Message was sent while issue was closed.
Change committed as cad0cb2a2dd23ceee03f24954c491344aef18c2c

Powered by Google App Engine
This is Rietveld 408576698