Don't assert mips actually need resolve during texResolveRenderTask

Too many exceptions can arise during flush in which the mips won't
actually be marked dirty: Failed to flush GL state, Ops that don't
actually issue any draws, etc. Since the DAG can't and shouldn't
predict these rare exceptions, we just remove the assert.

Bug: skia:
Change-Id: I41cd802f226388fca3762736f15b529efb69a3a1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/238166
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/src/gpu/GrTextureResolveRenderTask.cpp b/src/gpu/GrTextureResolveRenderTask.cpp
index 0ae9356..9a4d6b4 100644
--- a/src/gpu/GrTextureResolveRenderTask.cpp
+++ b/src/gpu/GrTextureResolveRenderTask.cpp
@@ -45,8 +45,8 @@
     GrTexture* texture = fTarget->peekTexture();
     SkASSERT(texture);
 
-    if (GrTextureResolveFlags::kMipMaps & fResolveFlags) {
-        SkASSERT(texture->texturePriv().mipMapsAreDirty());
+    if ((GrTextureResolveFlags::kMipMaps & fResolveFlags) &&
+        texture->texturePriv().mipMapsAreDirty()) {
         flushState->gpu()->regenerateMipMapLevels(texture);
     }