Chromium Code Reviews
DescriptionSplit atomic and mutex implementations and make inlinable.
Skia cannot use Chromium's implementation of mutex (Lock) due to static
initializers. However, we would like to be able to use Chromium's
implementation of atomics. This motivates the split of implementation.
Skia's atomic and mutex calls should be inlinable, especially the atomics.
These calls often compile down to very few instructions, and we currently have
the overhead of a function call. This motivates the header implementation.
There is still a desire for the build system to select the implementation, so
the SK_XXX_PLATFORM_H pattern for header files is introduced. This allows the
build system to control which platform specific header files are chosen.
The Chromium side changes (most of which will need to go in before this change
can be found at https://codereview.chromium.org/19477005/ .
The Chromium side changes after this lands can be seen at
https://codereview.chromium.org/98073013 .
Committed: https://code.google.com/p/skia/source/detail?r=12738
Patch Set 1 #Patch Set 2 : Spel Beter #Patch Set 3 : Include all the files. #
Total comments: 12
Patch Set 4 : Address comments #Patch Set 5 : Remove deleted headers from public_headers. #Patch Set 6 : Move defines to SkPreConfig/SkUserConfig. #
Total comments: 2
Patch Set 7 : Remove dependencies, perpetuate bugs. #Patch Set 8 : Address dependency comments. #
Messages
Total messages: 8 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||