Index: tests/ResourceCacheTest.cpp |
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp |
index a733d39afe0ff4bd1621c4c4dd12feb374b9cb6d..bd2bb2f094e85e840f503dd26a7bb2e7d374c46f 100644 |
--- a/tests/ResourceCacheTest.cpp |
+++ b/tests/ResourceCacheTest.cpp |
@@ -31,7 +31,7 @@ static const int gHeight = 480; |
//////////////////////////////////////////////////////////////////////////////// |
DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheCache, reporter, ctxInfo) { |
- GrContext* context = ctxInfo.fGrContext; |
+ GrContext* context = ctxInfo.grContext(); |
GrSurfaceDesc desc; |
desc.fConfig = kSkia8888_GrPixelConfig; |
desc.fFlags = kRenderTarget_GrSurfaceFlag; |
@@ -81,7 +81,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheCache, reporter, ctxInfo) { |
} |
DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheStencilBuffers, reporter, ctxInfo) { |
- GrContext* context = ctxInfo.fGrContext; |
+ GrContext* context = ctxInfo.grContext(); |
GrSurfaceDesc smallDesc; |
smallDesc.fFlags = kRenderTarget_GrSurfaceFlag; |
smallDesc.fConfig = kSkia8888_GrPixelConfig; |
@@ -189,7 +189,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheStencilBuffers, reporter, ctxInf |
} |
DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ResourceCacheWrappedResources, reporter, ctxInfo) { |
- GrContext* context = ctxInfo.fGrContext; |
+ GrContext* context = ctxInfo.grContext(); |
GrGpu* gpu = context->getGpu(); |
// this test is only valid for GL |
if (!gpu || !gpu->glContextForTesting()) { |