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

Issue 1905683003: SkCpu w/o static initializer (Closed)

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

Description

SkCpu w/o static initializer I think I cracked it. Though, this may not technically be legal C++... I've only got one definition of SkCpu::gCachedFeatures, but two different declarations: non-const in SkCpu.cpp, const elsewhere. Is this... - legal C++? - not C++ but probably works as I think? - not C++ and will probably blow up? - who knows, let's see? I have tested that the features are cached properly, read properly, and that the generated code treats SkCpu::gCachedFeatures as a global constant outside SkCpu.cpp. So it all observably works optimally. Expanding testing to more bots. TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1905683003 Committed: https://skia.googlesource.com/skia/+/eb85fd746d6390f53e250583a0544bf59ed34b35

Patch Set 1 #

Patch Set 2 : Eureka #

Patch Set 3 : simpler #

Patch Set 4 : back to static-initializer on Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -47 lines) Patch
M src/core/SkCpu.h View 1 2 3 1 chunk +7 lines, -40 lines 0 comments Download
M src/core/SkCpu.cpp View 1 2 3 2 chunks +12 lines, -7 lines 0 comments Download
M src/core/SkGraphics.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
mtklein_C
4 years, 8 months ago (2016-04-21 14:57:16 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905683003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905683003/40001
4 years, 8 months ago (2016-04-21 14:57:36 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/8065)
4 years, 8 months ago (2016-04-21 15:00:26 UTC) #10
mtklein
On 2016/04/21 at 15:00:26, commit-bot wrote: > Dry run: Try jobs failed on following builders: ...
4 years, 8 months ago (2016-04-21 15:06:03 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905683003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905683003/60001
4 years, 8 months ago (2016-04-21 15:13:24 UTC) #13
mtklein_C
Ok, sorry for the false start earlier. This version should be good to go. It ...
4 years, 8 months ago (2016-04-21 15:24:53 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-21 15:27:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905683003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905683003/60001
4 years, 8 months ago (2016-04-21 17:33:47 UTC) #19
commit-bot: I haz the power
4 years, 8 months ago (2016-04-21 17:34:45 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/eb85fd746d6390f53e250583a0544bf59ed34b35

Powered by Google App Engine
This is Rietveld 408576698