From 81dd3e0c66c6c521a4548205e7e29d6c4972f644 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Fri, 23 Jun 2017 11:59:24 -0400 Subject: Finish a few MDB TODOs Change-Id: I5579bea381ce30dc59502dbeb5841fea927002c2 Reviewed-on: https://skia-review.googlesource.com/20640 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon --- tests/RenderTargetContextTest.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/RenderTargetContextTest.cpp') diff --git a/tests/RenderTargetContextTest.cpp b/tests/RenderTargetContextTest.cpp index dbb41851c6..311643e919 100644 --- a/tests/RenderTargetContextTest.cpp +++ b/tests/RenderTargetContextTest.cpp @@ -9,9 +9,8 @@ #include "Test.h" -// MDB TODO: With the move of the discard calls to the RenderTargetContext, deferred RTCs are being -// instantiated early. This test can be re-enabled once discards do not force an instantiation -// (i.e., when renderTargetProxies carry the op IORefs) +// MDB TODO: the early instantiation of the renderTargetContext's backing GrRenderTargetProxy +// mixes this test up. Re-enable once backing GPU resources are distributed by MDB at flush time. #if 0 #if SK_SUPPORT_GPU @@ -50,8 +49,7 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(RenderTargetContextTest, reporter, ctxInfo) { GrTextureProxy* tProxy = rtCtx->asTextureProxy(); REPORTER_ASSERT(reporter, tProxy); - GrTexture* tex = tProxy->instantiate(ctx->resourceProvider()); - REPORTER_ASSERT(reporter, tex); + REPORTER_ASSERT(reporter, tProxy->instantiate(ctx->resourceProvider())); check_is_wrapped_status(reporter, rtCtx.get(), true); } -- cgit v1.2.3