aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-01-16 15:07:54 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-16 20:53:28 +0000
commit6be756b673b823881e90a2ef68c12b640ddde549 (patch)
treef7e09cae44e5d5b3faddef00d9250962eec0e05a /bench
parent1ea485fd56a977b4e84b4e82039e8f2487813c1e (diff)
Move resourceProvider accessor to GrContextPriv (take 2)
TBR=bsalomon@google.com Change-Id: I3fd46ebfad0d04b8a2bfa6190f81308f3a6be620 Reviewed-on: https://skia-review.googlesource.com/95121 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'bench')
-rw-r--r--bench/GrResourceCacheBench.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/bench/GrResourceCacheBench.cpp b/bench/GrResourceCacheBench.cpp
index d78af0a9e5..c48aed5e0b 100644
--- a/bench/GrResourceCacheBench.cpp
+++ b/bench/GrResourceCacheBench.cpp
@@ -9,10 +9,11 @@
#if SK_SUPPORT_GPU
-#include "GrGpuResource.h"
-#include "GrGpuResourcePriv.h"
#include "GrContext.h"
+#include "GrContextPriv.h"
#include "GrGpu.h"
+#include "GrGpuResource.h"
+#include "GrGpuResourcePriv.h"
#include "GrResourceCache.h"
#include "SkCanvas.h"
@@ -76,7 +77,7 @@ protected:
// Set the cache budget to be very large so no purging occurs.
context->setResourceCacheLimits(CACHE_SIZE_COUNT, 1 << 30);
- GrResourceCache* cache = context->getResourceCache();
+ GrResourceCache* cache = context->contextPriv().getResourceCache();
// Make sure the cache is empty.
cache->purgeAllUnlocked();
@@ -122,7 +123,7 @@ protected:
// Set the cache budget to be very large so no purging occurs.
fContext->setResourceCacheLimits(CACHE_SIZE_COUNT, 1 << 30);
- GrResourceCache* cache = fContext->getResourceCache();
+ GrResourceCache* cache = fContext->contextPriv().getResourceCache();
// Make sure the cache is empty.
cache->purgeAllUnlocked();
@@ -137,7 +138,7 @@ protected:
if (!fContext) {
return;
}
- GrResourceCache* cache = fContext->getResourceCache();
+ GrResourceCache* cache = fContext->contextPriv().getResourceCache();
SkASSERT(CACHE_SIZE_COUNT == cache->getResourceCount());
for (int i = 0; i < loops; ++i) {
for (int k = 0; k < CACHE_SIZE_COUNT; ++k) {