Index: tests/SurfaceTest.cpp |
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp |
index 65c0c3b53d03ece7734a165ed7eccaf7c2a8ad76..c38a3d7c63b032603941ded7f9e7f147d71c2fce 100644 |
--- a/tests/SurfaceTest.cpp |
+++ b/tests/SurfaceTest.cpp |
@@ -121,7 +121,7 @@ static void test_wrapped_texture_surface(skiatest::Reporter* reporter, GrContext |
wrappedDesc.fWidth = dummySurface->width(); |
wrappedDesc.fHeight = dummySurface->height(); |
wrappedDesc.fOrigin = dummySurface->origin(); |
- wrappedDesc.fSampleCnt = dummySurface->asRenderTarget()->numSamples(); |
+ wrappedDesc.fSampleCnt = dummySurface->asRenderTarget()->numColorSamples(); |
wrappedDesc.fFlags = kRenderTarget_GrBackendTextureFlag; |
wrappedDesc.fTextureHandle = textureHandle; |