| Index: tests/ResourceCacheTest.cpp
|
| diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp
|
| index b9632ef8ba8d1fbb7827c08efc09c8a764899f7a..71fb4e38b196f807b5ef1d7d51ce376be0ce2992 100644
|
| --- a/tests/ResourceCacheTest.cpp
|
| +++ b/tests/ResourceCacheTest.cpp
|
| @@ -122,7 +122,7 @@
|
| smallRT0->asRenderTarget()->renderTargetPriv().getStencilAttachment() !=
|
| bigRT->asRenderTarget()->renderTargetPriv().getStencilAttachment());
|
|
|
| - if (context->caps()->maxSampleCount() >= 4) {
|
| + if (context->getMaxSampleCount() >= 4) {
|
| // An RT with a different sample count should not share.
|
| GrSurfaceDesc smallMSAADesc = smallDesc;
|
| smallMSAADesc.fSampleCnt = 4;
|
| @@ -154,8 +154,7 @@
|
| smallMSAART1->asRenderTarget()->renderTargetPriv().getStencilAttachment());
|
| // But not one with a larger sample count should not. (Also check that the request for 4
|
| // samples didn't get rounded up to >= 8 or else they could share.).
|
| - if (context->caps()->maxSampleCount() >= 8 &&
|
| - smallMSAART0 && smallMSAART0->asRenderTarget() &&
|
| + if (context->getMaxSampleCount() >= 8 && smallMSAART0 && smallMSAART0->asRenderTarget() &&
|
| smallMSAART0->asRenderTarget()->numSamples() < 8) {
|
| smallMSAADesc.fSampleCnt = 8;
|
| smallMSAART1.reset(cache->createTexture(smallMSAADesc, false));
|
|
|