Index: tests/ResourceCacheTest.cpp |
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp |
index b9632ef8ba8d1fbb7827c08efc09c8a764899f7a..18ec6e72a35bc7f0fc5037257e525a8372722bcd 100644 |
--- a/tests/ResourceCacheTest.cpp |
+++ b/tests/ResourceCacheTest.cpp |
@@ -156,7 +156,7 @@ static void test_stencil_buffers(skiatest::Reporter* reporter, GrContext* contex |
// samples didn't get rounded up to >= 8 or else they could share.). |
if (context->caps()->maxSampleCount() >= 8 && |
smallMSAART0 && smallMSAART0->asRenderTarget() && |
- smallMSAART0->asRenderTarget()->numSamples() < 8) { |
+ smallMSAART0->asRenderTarget()->numColorSamples() < 8) { |
smallMSAADesc.fSampleCnt = 8; |
smallMSAART1.reset(cache->createTexture(smallMSAADesc, false)); |
SkAutoTUnref<GrTexture> smallMSAART1(cache->createTexture(smallMSAADesc, false)); |