Index: tests/ResourceCacheTest.cpp |
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp |
index 0931876cf13fd6a99e0dbb352b61f711cb3feca8..0ac64edd0758ce104e3354eb8017a8446d4309a0 100644 |
--- a/tests/ResourceCacheTest.cpp |
+++ b/tests/ResourceCacheTest.cpp |
@@ -30,7 +30,8 @@ static const int gWidth = 640; |
static const int gHeight = 480; |
//////////////////////////////////////////////////////////////////////////////// |
-DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheCache, reporter, context) { |
+DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheCache, reporter, ctxInfo) { |
+ GrContext* context = ctxInfo.fGrContext; |
GrSurfaceDesc desc; |
desc.fConfig = kSkia8888_GrPixelConfig; |
desc.fFlags = kRenderTarget_GrSurfaceFlag; |
@@ -79,7 +80,8 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheCache, reporter, context) { |
context->setResourceCacheLimits(oldMaxNum, oldMaxBytes); |
} |
-DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheStencilBuffers, reporter, context) { |
+DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheStencilBuffers, reporter, ctxInfo) { |
+ GrContext* context = ctxInfo.fGrContext; |
GrSurfaceDesc smallDesc; |
smallDesc.fFlags = kRenderTarget_GrSurfaceFlag; |
smallDesc.fConfig = kSkia8888_GrPixelConfig; |
@@ -186,7 +188,8 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheStencilBuffers, reporter, contex |
} |
} |
-DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheWrappedResources, reporter, context) { |
+DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheWrappedResources, reporter, ctxInfo) { |
+ GrContext* context = ctxInfo.fGrContext; |
GrGpu* gpu = context->getGpu(); |
// this test is only valid for GL |
if (!gpu || !gpu->glContextForTesting()) { |