aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/GrMipMappedTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/GrMipMappedTest.cpp b/tests/GrMipMappedTest.cpp
index 4c93714401..ee4838d2ce 100644
--- a/tests/GrMipMappedTest.cpp
+++ b/tests/GrMipMappedTest.cpp
@@ -87,7 +87,13 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(GrWrappedMipMappedTest, reporter, ctxInfo) {
if (isRT) {
REPORTER_ASSERT(reporter, texture->texturePriv().mipMapsAreDirty());
} else {
+#if 1
+ // This is temporarily checks that the new image DOES have dirty MIP levels. See
+ // comment in SkImage_Gpu.cpp, new_wrapped_texture_common().
+ REPORTER_ASSERT(reporter, texture->texturePriv().mipMapsAreDirty());
+#else
REPORTER_ASSERT(reporter, !texture->texturePriv().mipMapsAreDirty());
+#endif
}
} else {
REPORTER_ASSERT(reporter, GrMipMapped::kNo == texture->texturePriv().mipMapped());