fix Google3 roll

Bug: skia:
Change-Id: I26428e032ac79f0fa489516479c7ca279ae3afd0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/202710
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/gm/runtimecolorfilter.cpp b/gm/runtimecolorfilter.cpp
index 0f84dff..efee4a8 100644
--- a/gm/runtimecolorfilter.cpp
+++ b/gm/runtimecolorfilter.cpp
@@ -45,9 +45,10 @@
     wb.writeFlattenable(cf1.get());
     SkReadBuffer rb(buffer, kBufferSize);
     auto cf2 = rb.readColorFilter();
-    SkASSERT(cf2);
-    p.setColorFilter(cf2);
-    canvas->drawImage(img, 512, 0, &p);
+    if (cf2) {
+        p.setColorFilter(cf2);
+        canvas->drawImage(img, 512, 0, &p);
+    }
 }
 
 DEF_SIMPLE_GM(runtimecolorfilter_interpreted, canvas, 768, 256) {
@@ -67,7 +68,8 @@
     wb.writeFlattenable(cf1.get());
     SkReadBuffer rb(buffer, kBufferSize);
     auto cf2 = rb.readColorFilter();
-    SkASSERT(cf2);
-    p.setColorFilter(cf2);
-    canvas->drawImage(img, 512, 0, &p);
+    if (cf2) {
+        p.setColorFilter(cf2);
+        canvas->drawImage(img, 512, 0, &p);
+    }
 }