From e252f08982b0c747cd4d34c00ce413ab1005e99a Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Mon, 23 Oct 2017 16:05:23 -0400 Subject: Add hint to SkSurface::MakeRenderTarget that we will use mips Additionally this changed triggered a cascade of plumbing GrMipMapped down throughout Ganesh. Bug: skia: Change-Id: I4181f44d9046d66139bb491c7abf86703305aaeb Reviewed-on: https://skia-review.googlesource.com/63000 Reviewed-by: Robert Phillips Commit-Queue: Greg Daniel --- tests/GrTextureMipMapInvalidationTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/GrTextureMipMapInvalidationTest.cpp') diff --git a/tests/GrTextureMipMapInvalidationTest.cpp b/tests/GrTextureMipMapInvalidationTest.cpp index 8b2d95faad..cfb6853806 100644 --- a/tests/GrTextureMipMapInvalidationTest.cpp +++ b/tests/GrTextureMipMapInvalidationTest.cpp @@ -19,7 +19,8 @@ // Tests that MIP maps are created and invalidated as expected when drawing to and from GrTextures. DEF_GPUTEST_FOR_NULLGL_CONTEXT(GrTextureMipMapInvalidationTest, reporter, ctxInfo) { auto isMipped = [] (SkSurface* surf) { - return surf->makeImageSnapshot()->getTexture()->texturePriv().hasMipMaps(); + const GrTexture* texture = surf->makeImageSnapshot()->getTexture(); + return GrMipMapped::kYes == texture->texturePriv().mipMapped(); }; auto mipsAreDirty = [] (SkSurface* surf) { -- cgit v1.2.3