From f2f1c17e331fe1e0ce695969970ecebc81e12ceb Mon Sep 17 00:00:00 2001 From: bsalomon Date: Tue, 5 Apr 2016 12:59:06 -0700 Subject: One signature for creating unit tests that run on premade GrContexts GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1860593002 Review URL: https://codereview.chromium.org/1860593002 --- tests/ClearTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/ClearTest.cpp') diff --git a/tests/ClearTest.cpp b/tests/ClearTest.cpp index 25fcf85849..56f2fe17be 100644 --- a/tests/ClearTest.cpp +++ b/tests/ClearTest.cpp @@ -65,7 +65,8 @@ static bool reset_dc(SkAutoTUnref* dc, SkAutoTUnref* r return *dc != nullptr; } -DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ClearBatch, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ClearBatch, reporter, ctxInfo) { + GrContext* context = ctxInfo.fGrContext; static const int kW = 10; static const int kH = 10; -- cgit v1.2.3