DescriptionSkCpu 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 #
Messages
Total messages: 21 (12 generated)
|