| Index: src/gpu/GrProcessor.cpp
|
| diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp
|
| index 3b8cb679fd47b887897be5bb27262c5c9d935dbe..a8d1fdd5d7f610db31eed1b213bb104507ca608d 100644
|
| --- a/src/gpu/GrProcessor.cpp
|
| +++ b/src/gpu/GrProcessor.cpp
|
| @@ -12,7 +12,7 @@
|
| #include "GrInvariantOutput.h"
|
| #include "GrMemoryPool.h"
|
| #include "GrXferProcessor.h"
|
| -#include "SkMutex.h"
|
| +#include "SkSpinlock.h"
|
|
|
| #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
|
|
|
| @@ -102,12 +102,12 @@ const SkMatrix& TestMatrix(SkRandom* random) {
|
| // barrier between accesses of a context on different threads. Also, there may be multiple
|
| // GrContexts and those contexts may be in use concurrently on different threads.
|
| namespace {
|
| -SK_DECLARE_STATIC_MUTEX(gProcessorPoolMutex);
|
| +static SkSpinlock gProcessorSpinlock;
|
| class MemoryPoolAccessor {
|
| public:
|
| - MemoryPoolAccessor() { gProcessorPoolMutex.acquire(); }
|
| + MemoryPoolAccessor() { gProcessorSpinlock.acquire(); }
|
|
|
| - ~MemoryPoolAccessor() { gProcessorPoolMutex.release(); }
|
| + ~MemoryPoolAccessor() { gProcessorSpinlock.release(); }
|
|
|
| GrMemoryPool* pool() const {
|
| static GrMemoryPool gPool(4096, 4096);
|
|
|