aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ResourceAllocatorTest.cpp
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-01-29 10:34:25 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-29 16:01:21 +0000
commitaa3dfbe51e6f14db5ccc048b4167ad334ce05176 (patch)
tree29ecae5f1461148747751d7c51e00e3cc470db9b /tests/ResourceAllocatorTest.cpp
parent03bd9ee472ed1f7b3b2320277fdf32e461abc54d (diff)
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 <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests/ResourceAllocatorTest.cpp')
-rw-r--r--tests/ResourceAllocatorTest.cpp8
1 files changed, 6 insertions, 2 deletions
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());