diff options
author | Robert Phillips <robertphillips@google.com> | 2018-01-16 10:44:11 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-16 17:02:45 +0000 |
commit | 1f9ed8501b0007846b3032f4bfc38aee98c175a1 (patch) | |
tree | a342137e34180a110d1cd4129650a771290d0f17 /tests/SurfaceTest.cpp | |
parent | 20df20cfe822f613d6035baf5f5415a3a977e709 (diff) |
Move resourceProvider accessor to GrContextPriv
Change-Id: I5cddd620a7ec4b006b7359864ede58e9d4dd684e
Reviewed-on: https://skia-review.googlesource.com/94340
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests/SurfaceTest.cpp')
-rw-r--r-- | tests/SurfaceTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index a07b3361ef..7f0d9973b5 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -783,6 +783,8 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SurfaceAttachStencil_Gpu, reporter, ctxInf } static const uint32_t kOrigColor = 0xFFAABBCC; + auto resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); + for (auto& surfaceFunc : {&create_gpu_surface_backend_texture, &create_gpu_surface_backend_texture_as_render_target}) { for (int sampleCnt : {0, 4, 8}) { @@ -798,8 +800,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SurfaceAttachStencil_Gpu, reporter, ctxInf // our surface functions. GrRenderTarget* rt = surface->getCanvas() ->internal_private_accessTopLayerRenderTargetContext()->accessRenderTarget(); - REPORTER_ASSERT(reporter, - ctxInfo.grContext()->resourceProvider()->attachStencilAttachment(rt)); + REPORTER_ASSERT(reporter, resourceProvider->attachStencilAttachment(rt)); gpu->deleteTestingOnlyBackendTexture(&backendTex); } } |