Index: tests/ProxyTest.cpp |
diff --git a/tests/ProxyTest.cpp b/tests/ProxyTest.cpp |
index 016ce5e763a82d85bcfc684e702c01a31cf70b74..367dee426a66c10549bd9fc19ec49c48c7f7be51 100644 |
--- a/tests/ProxyTest.cpp |
+++ b/tests/ProxyTest.cpp |
@@ -162,7 +162,8 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(WrappedProxyTest, reporter, ctxInfo) { |
GrGpu* gpu = ctxInfo.grContext()->getGpu(); |
sk_sp<GrRenderTarget> defaultFBO( |
gpu->wrapBackendRenderTarget(backendDesc, kBorrow_GrWrapOwnership)); |
- SkASSERT(!defaultFBO->renderTargetPriv().supportsWindowRectangles()); |
+ REPORTER_ASSERT(reporter, |
+ !defaultFBO->renderTargetPriv().maxWindowRectangles()); |
sk_sp<GrRenderTargetProxy> rtProxy( |
GrRenderTargetProxy::Make(caps, defaultFBO)); |
@@ -178,8 +179,9 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(WrappedProxyTest, reporter, ctxInfo) { |
desc.fFlags = kRenderTarget_GrSurfaceFlag; |
tex.reset(provider->createTexture(desc, budgeted)); |
sk_sp<GrRenderTarget> rt(sk_ref_sp(tex->asRenderTarget())); |
- SkASSERT(caps.maxWindowRectangles() <= 0 || |
- rt->renderTargetPriv().supportsWindowRectangles()); |
+ REPORTER_ASSERT(reporter, |
+ caps.maxWindowRectangles() == |
+ rt->renderTargetPriv().maxWindowRectangles()); |
sk_sp<GrRenderTargetProxy> rtProxy(GrRenderTargetProxy::Make(caps, rt)); |
check_surface(reporter, rtProxy.get(), origin, |