diff options
Diffstat (limited to 'tests/ResourceAllocatorTest.cpp')
-rw-r--r-- | tests/ResourceAllocatorTest.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/ResourceAllocatorTest.cpp b/tests/ResourceAllocatorTest.cpp index 7647e89687..7718146ce4 100644 --- a/tests/ResourceAllocatorTest.cpp +++ b/tests/ResourceAllocatorTest.cpp @@ -20,6 +20,7 @@ #include "GrTest.h" #include "GrTexture.h" #include "GrTextureProxy.h" +#include "GrUninstantiateProxyTracker.h" struct ProxyParams { int fSize; @@ -71,7 +72,8 @@ static void overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resou int startIndex, stopIndex; GrResourceAllocator::AssignError error; - alloc.assign(&startIndex, &stopIndex, &error); + GrUninstantiateProxyTracker uninstantiateTracker; + alloc.assign(&startIndex, &stopIndex, &uninstantiateTracker, &error); REPORTER_ASSERT(reporter, GrResourceAllocator::AssignError::kNoError == error); REPORTER_ASSERT(reporter, p1->priv().peekSurface()); @@ -93,7 +95,8 @@ static void non_overlap_test(skiatest::Reporter* reporter, GrResourceProvider* r int startIndex, stopIndex; GrResourceAllocator::AssignError error; - alloc.assign(&startIndex, &stopIndex, &error); + GrUninstantiateProxyTracker uninstantiateTracker; + alloc.assign(&startIndex, &stopIndex, &uninstantiateTracker, &error); REPORTER_ASSERT(reporter, GrResourceAllocator::AssignError::kNoError == error); REPORTER_ASSERT(reporter, p1->priv().peekSurface()); |