Index: src/core/SkRecordOpts.cpp |
diff --git a/src/core/SkRecordOpts.cpp b/src/core/SkRecordOpts.cpp |
index 75f7c626056ca732411ed3b857350e99d371f631..cb429cf76cd1a407c68db62fa6d7ad2dcdf5b193 100644 |
--- a/src/core/SkRecordOpts.cpp |
+++ b/src/core/SkRecordOpts.cpp |
@@ -84,11 +84,6 @@ struct SaveNoDrawsRestoreNooper { |
Pattern; |
bool onMatch(SkRecord* record, Pattern* pattern, unsigned begin, unsigned end) { |
- // If restore doesn't revert both matrix and clip, this isn't safe to noop away. |
- if (pattern->first<Save>()->flags != SkCanvas::kMatrixClip_SaveFlag) { |
- return false; |
- } |
- |
// The entire span between Save and Restore (inclusively) does nothing. |
for (unsigned i = begin; i < end; i++) { |
record->replace<NoOp>(i); |