From aa3dfbe51e6f14db5ccc048b4167ad334ce05176 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Mon, 29 Jan 2018 10:34:25 -0500 Subject: Remove Ops whose lazy proxies fail to instantiate on flush Bug: skia: Change-Id: If8b5b9e5d0c306be28ba192b731d34d185427354 Reviewed-on: https://skia-review.googlesource.com/99440 Commit-Queue: Greg Daniel Reviewed-by: Robert Phillips --- tests/ResourceAllocatorTest.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/ResourceAllocatorTest.cpp') diff --git a/tests/ResourceAllocatorTest.cpp b/tests/ResourceAllocatorTest.cpp index 121cf86345..7dcb0ee942 100644 --- a/tests/ResourceAllocatorTest.cpp +++ b/tests/ResourceAllocatorTest.cpp @@ -72,7 +72,9 @@ static void overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resou alloc.markEndOfOpList(0); int startIndex, stopIndex; - alloc.assign(&startIndex, &stopIndex); + GrResourceAllocator::AssignError error; + alloc.assign(&startIndex, &stopIndex, &error); + REPORTER_ASSERT(reporter, GrResourceAllocator::AssignError::kNoError == error); REPORTER_ASSERT(reporter, p1->priv().peekSurface()); REPORTER_ASSERT(reporter, p2->priv().peekSurface()); @@ -92,7 +94,9 @@ static void non_overlap_test(skiatest::Reporter* reporter, GrResourceProvider* r alloc.markEndOfOpList(0); int startIndex, stopIndex; - alloc.assign(&startIndex, &stopIndex); + GrResourceAllocator::AssignError error; + alloc.assign(&startIndex, &stopIndex, &error); + REPORTER_ASSERT(reporter, GrResourceAllocator::AssignError::kNoError == error); REPORTER_ASSERT(reporter, p1->priv().peekSurface()); REPORTER_ASSERT(reporter, p2->priv().peekSurface()); -- cgit v1.2.3