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/GrMipMappedTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/GrMipMappedTest.cpp') diff --git a/tests/GrMipMappedTest.cpp b/tests/GrMipMappedTest.cpp index 143e902a7e..aad3b60d8d 100644 --- a/tests/GrMipMappedTest.cpp +++ b/tests/GrMipMappedTest.cpp @@ -86,14 +86,14 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrWrappedMipMappedTest, reporter, ctxInfo) { } if (GrMipMapped::kYes == mipMapped) { - REPORTER_ASSERT(reporter, texture->texturePriv().hasMipMaps()); + REPORTER_ASSERT(reporter, GrMipMapped::kYes == texture->texturePriv().mipMapped()); if (isRT) { REPORTER_ASSERT(reporter, texture->texturePriv().mipMapsAreDirty()); } else { REPORTER_ASSERT(reporter, !texture->texturePriv().mipMapsAreDirty()); } } else { - REPORTER_ASSERT(reporter, !texture->texturePriv().hasMipMaps()); + REPORTER_ASSERT(reporter, GrMipMapped::kNo == texture->texturePriv().mipMapped()); } context->getGpu()->deleteTestingOnlyBackendTexture(backendHandle); } -- cgit v1.2.3