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 2277463002: Make singleton SkColorSpaces thread safe (Closed)

Created:
4 years, 4 months ago by msarett
Modified:
4 years, 4 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

Make singleton SkColorSpaces thread safe SkColorSpaces may be once-ptrs, so we can reuse common color spaces. This means that they must be thread safe. SkMatrix44 is not thread safe because it maintains a mutable type mask. This CL ensures that we precompute the type mask so we can use const SkMatrix44's safely. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2277463002 Committed: https://skia.googlesource.com/skia/+/ae6377c08e5c3735c65212ba9ff86fa51af7d68a

Patch Set 1 #

Patch Set 2 : Precompute SkMatrix44 type mask #

Patch Set 3 : Use getType() to force compute of type mask #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M src/core/SkColorSpace.cpp View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M tests/ColorSpaceTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (14 generated)
msarett
4 years, 4 months ago (2016-08-23 20:03:07 UTC) #3
msarett
PTAL, now this actually fixes the problem.
4 years, 4 months ago (2016-08-23 20:30:18 UTC) #6
bungeman-skia
The gist of this lgtm, but I'll let the API owners bikeshed the name.
4 years, 4 months ago (2016-08-23 20:53:19 UTC) #8
mtklein
FWIW, the way I do this on 3x3 SkMatrix is (void)matrix->getType();
4 years, 4 months ago (2016-08-23 20:55:03 UTC) #9
msarett
Thoughts on Patch Set 3?
4 years, 4 months ago (2016-08-23 21:04:03 UTC) #11
bsalomon
On 2016/08/23 21:04:03, msarett wrote: > Thoughts on Patch Set 3? lgtm
4 years, 4 months ago (2016-08-23 21:07:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2277463002/70001
4 years, 4 months ago (2016-08-23 21:35:26 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 21:36:23 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:70001) as
https://skia.googlesource.com/skia/+/ae6377c08e5c3735c65212ba9ff86fa51af7d68a

Powered by Google App Engine
This is Rietveld 408576698