Comment out conditionally used variable.

Bug: 66996870
Test: normal build
Change-Id: Id8ab180c25eaac2ac8c83015aacf9ad155f54b43
Merged-In: I19902aa8bd5ba71c534fdfd5d9e036a66c29f9a2
diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp
index bff3348..9e690aa 100644
--- a/src/gpu/GrProcessor.cpp
+++ b/src/gpu/GrProcessor.cpp
@@ -96,7 +96,9 @@
 // memory 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 {
+#if !defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
 static SkSpinlock gProcessorSpinlock;
+#endif
 class MemoryPoolAccessor {
 public:
 
diff --git a/src/gpu/ops/GrOp.cpp b/src/gpu/ops/GrOp.cpp
index 7762a5a..798d29d 100644
--- a/src/gpu/ops/GrOp.cpp
+++ b/src/gpu/ops/GrOp.cpp
@@ -20,7 +20,9 @@
 // memory 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 {
+#if !defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
 static SkSpinlock gOpPoolSpinLock;
+#endif
 class MemoryPoolAccessor {
 public: