Skip spinlock overhead on Android
authormsarett <msarett@google.com>
Mon, 29 Aug 2016 21:52:24 +0000 (14:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Aug 2016 21:52:24 +0000 (14:52 -0700)
commit68440f8ce90a48e14e79b6fe5a6dd47c8c09bfb4
tree59da053ccc17f6f3f5aba322d3f0bfb512511e30
parent9b09cd8372ad0b25da20a50d9967bb02f9f2f9d8
Skip spinlock overhead on Android

Using the spinlock is only necessary when we multiple threads
might use a GrContext.  Android uses the GrContext from a
single thread, so these locks are not needed.

This is a temporary fix until we can refactor to avoid
creating GrContexts in a global memory pool.

BUG=skia:5696
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2293633003

Review-Url: https://codereview.chromium.org/2293633003
src/gpu/GrProcessor.cpp
src/gpu/batches/GrBatch.cpp