| Index: tests/GrTextureMipMapInvalidationTest.cpp
|
| diff --git a/tests/GrTextureMipMapInvalidationTest.cpp b/tests/GrTextureMipMapInvalidationTest.cpp
|
| index b047550e6d731d08caed3a8e59e7f5487d422158..539a8ce55ce7068f610a4820ae1b8efeb126f228 100644
|
| --- a/tests/GrTextureMipMapInvalidationTest.cpp
|
| +++ b/tests/GrTextureMipMapInvalidationTest.cpp
|
| @@ -41,7 +41,7 @@ DEF_GPUTEST_FOR_NULL_CONTEXT(GrTextureMipMapInvalidationTest, reporter, context)
|
| REPORTER_ASSERT(reporter, false == tex->texturePriv().hasMipMaps());
|
|
|
| // Painting with downscale and medium filter quality should result in mipmap creation
|
| - SkSurface* surface = SkSurface::NewRenderTargetDirect(texRT2->asRenderTarget());
|
| + auto surface = SkSurface::MakeRenderTargetDirect(texRT2->asRenderTarget());
|
| SkPaint paint;
|
| paint.setFilterQuality(kMedium_SkFilterQuality);
|
| surface->getCanvas()->scale(0.2f, 0.2f);
|
| @@ -56,7 +56,6 @@ DEF_GPUTEST_FOR_NULL_CONTEXT(GrTextureMipMapInvalidationTest, reporter, context)
|
| REPORTER_ASSERT(reporter, true == tex->texturePriv().hasMipMaps());
|
| REPORTER_ASSERT(reporter, true == tex->texturePriv().mipMapsAreDirty());
|
|
|
| - surface->unref();
|
| texRT1->unref();
|
| texRT2->unref();
|
| }
|
|
|