| Index: src/gpu/GrProcessor.cpp
|
| diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp
|
| index 29482ccc63f90a154cd5bc5bc025c34721e82e22..b945b027f20986d0348d5699f85524e418e10550 100644
|
| --- a/src/gpu/GrProcessor.cpp
|
| +++ b/src/gpu/GrProcessor.cpp
|
| @@ -84,9 +84,15 @@ namespace {
|
| static SkSpinlock gProcessorSpinlock;
|
| class MemoryPoolAccessor {
|
| public:
|
| - MemoryPoolAccessor() { gProcessorSpinlock.acquire(); }
|
|
|
| +// We know in the Android framework there is only one GrContext.
|
| +#if defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
|
| + MemoryPoolAccessor() {}
|
| + ~MemoryPoolAccessor() {}
|
| +#else
|
| + MemoryPoolAccessor() { gProcessorSpinlock.acquire(); }
|
| ~MemoryPoolAccessor() { gProcessorSpinlock.release(); }
|
| +#endif
|
|
|
| GrMemoryPool* pool() const {
|
| static GrMemoryPool gPool(4096, 4096);
|
|
|