| Index: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| index 0bc3ea1795027d138c0bccaff01e837445c00848..8d8fcc0827f72a30916299d58f26f620bafc35ed 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| @@ -31,6 +31,7 @@
|
| #include "platform/image-decoders/png/PNGImageDecoder.h"
|
| #include "platform/image-decoders/webp/WEBPImageDecoder.h"
|
| #include "wtf/PtrUtil.h"
|
| +#include "wtf/SpinLock.h"
|
| #include <memory>
|
|
|
| namespace blink {
|
| @@ -461,7 +462,7 @@ size_t ImagePlanes::rowBytes(int i) const {
|
| namespace {
|
|
|
| // The output device color space is global and shared across multiple threads.
|
| -SpinLock gTargetColorSpaceLock;
|
| +WTF::SpinLock gTargetColorSpaceLock;
|
| SkColorSpace* gTargetColorSpace = nullptr;
|
|
|
| } // namespace
|
| @@ -473,7 +474,7 @@ void ImageDecoder::setGlobalTargetColorProfile(const WebVector<char>& profile) {
|
|
|
| // Take a lock around initializing and accessing the global device color
|
| // profile.
|
| - SpinLock::Guard guard(gTargetColorSpaceLock);
|
| + WTF::SpinLock::Guard guard(gTargetColorSpaceLock);
|
|
|
| // Layout tests expect that only the first call will take effect.
|
| if (gTargetColorSpace)
|
| @@ -490,7 +491,7 @@ void ImageDecoder::setGlobalTargetColorProfile(const WebVector<char>& profile) {
|
| sk_sp<SkColorSpace> ImageDecoder::globalTargetColorSpace() {
|
| // Take a lock around initializing and accessing the global device color
|
| // profile.
|
| - SpinLock::Guard guard(gTargetColorSpaceLock);
|
| + WTF::SpinLock::Guard guard(gTargetColorSpaceLock);
|
|
|
| // Initialize the output device profile to sRGB if it has not yet been
|
| // initialized.
|
|
|