| Index: tests/TextureStorageAllocator.cpp
|
| diff --git a/tests/TextureStorageAllocator.cpp b/tests/TextureStorageAllocator.cpp
|
| index fbd00d32f698eb623d60291c7b56b2bf6e0992d8..433b3659327a63cac4a4d4994c5eca55d7a9b13e 100644
|
| --- a/tests/TextureStorageAllocator.cpp
|
| +++ b/tests/TextureStorageAllocator.cpp
|
| @@ -53,7 +53,9 @@ class TestStorageAllocator {
|
| bool m_allowAllocation;
|
| };
|
|
|
| -DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTexture, reporter, context, glContext) {
|
| +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTexture, reporter, ctxInfo) {
|
| + GrContext* context = ctxInfo.fGrContext;
|
| + sk_gpu_test::GLTestContext* glContext = ctxInfo.fGLContext;
|
| static const int kWidth = 13;
|
| static const int kHeight = 13;
|
|
|
| @@ -88,11 +90,11 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTexture, reporter, context, glContext)
|
| REPORTER_ASSERT(reporter, GrColorUnpackG(dest) == 255);
|
| }
|
|
|
| -DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTextureFailure, reporter, context, glContext) {
|
| +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTextureFailure, reporter, ctxInfo) {
|
| static const int kWidth = 13;
|
| static const int kHeight = 13;
|
|
|
| - const GrGLInterface* gl = glContext->gl();
|
| + const GrGLInterface* gl = ctxInfo.fGLContext->gl();
|
| TestStorageAllocator allocator;
|
| allocator.m_allowAllocation = false;
|
| allocator.m_gl = gl;
|
| @@ -101,7 +103,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(CustomTextureFailure, reporter, context, glCo
|
| grAllocator.fDeallocateTextureStorage= &TestStorageAllocator::deallocateTextureStorage;
|
| grAllocator.fCtx = &allocator;
|
| auto surface(SkSurface_Gpu::MakeRenderTarget(
|
| - context, SkBudgeted::kNo, SkImageInfo::MakeN32Premul(kWidth, kHeight), 0,
|
| + ctxInfo.fGrContext, SkBudgeted::kNo, SkImageInfo::MakeN32Premul(kWidth, kHeight), 0,
|
| NULL, grAllocator));
|
| REPORTER_ASSERT(reporter, !surface);
|
| }
|
|
|