aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkImageFilterCache.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-01-29 20:39:02 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-30 02:02:42 +0000
commit2f5b8d81c231ef4acb4b5671c0956a249f0ef4cf (patch)
treeccee304fa0cadf5f283479f5378e3423f5fd8f25 /src/core/SkImageFilterCache.h
parente41e1769e76dcce573038d04d90d62043ece7e4f (diff)
don't draw non-finite contexts in imagefilters
Bug: skia:7507 Change-Id: Ifc210951c17f74770f15de1c2e13b42117a3354e Reviewed-on: https://skia-review.googlesource.com/101202 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core/SkImageFilterCache.h')
-rw-r--r--src/core/SkImageFilterCache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkImageFilterCache.h b/src/core/SkImageFilterCache.h
index 115b41370e..2211a7aaca 100644
--- a/src/core/SkImageFilterCache.h
+++ b/src/core/SkImageFilterCache.h
@@ -28,6 +28,7 @@ struct SkImageFilterCacheKey {
sizeof(SkIRect) + sizeof(uint32_t) + 4 * sizeof(int32_t),
"image_filter_key_tight_packing");
fMatrix.getType(); // force initialization of type, so hashes match
+ SkASSERT(fMatrix.isFinite()); // otherwise we can't rely on == self when comparing keys
}
uint32_t fUniqueID;