Fix ImageTest to check if gpu mip maps are supported.
Bug: skia:
Change-Id: Iccef46cb61926f8cfdf29c8a095566d4b4ecda61
Reviewed-on: https://skia-review.googlesource.com/134516
Auto-Submit: Greg Daniel <egdaniel@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp
index dc7576a..2edf8b5 100644
--- a/tests/ImageTest.cpp
+++ b/tests/ImageTest.cpp
@@ -427,7 +427,8 @@
continue;
}
if (GrMipMapped::kYes == mipMapped &&
- as_IB(texImage)->peekProxy()->mipMapped() != mipMapped) {
+ as_IB(texImage)->peekProxy()->mipMapped() != mipMapped &&
+ context->contextPriv().caps()->mipMapSupport()) {
ERRORF(reporter, "makeTextureImage returned non-mipmapped texture.");
continue;
}