Index: src/gpu/GrLayerCache.h |
diff --git a/src/gpu/GrLayerCache.h b/src/gpu/GrLayerCache.h |
index 11c8f079ceb7ef9be607d8870e3bce6efb3973fd..cdbd0806ccb4e0694a8054d98bad4b7b3c931b78 100644 |
--- a/src/gpu/GrLayerCache.h |
+++ b/src/gpu/GrLayerCache.h |
@@ -164,7 +164,7 @@ |
SkASSERT(SK_InvalidGenID != pictureID); |
if (fPaint) { |
- if (fPaint->getImageFilter()) { |
+ if (fPaint->getImageFilter() && fPaint->getImageFilter()->canFilterImageGPU()) { |
fFilter = SkSafeRef(fPaint->getImageFilter()); |
fPaint->setImageFilter(NULL); |
} |