Index: src/record/SkRecordPattern.h |
diff --git a/src/record/SkRecordPattern.h b/src/record/SkRecordPattern.h |
index 2023a90572aca2dc947a8d15d781286a23bb8674..c5d87f2a20aeaa4cae597525e8e0f7734d42e3ad 100644 |
--- a/src/record/SkRecordPattern.h |
+++ b/src/record/SkRecordPattern.h |
@@ -53,6 +53,12 @@ public: |
return false; |
} |
+ // SaveLayer has an SkPaint named paint, but it's not a draw. |
+ bool match(SaveLayer*) { |
+ fPaint = NULL; |
+ return false; |
+ } |
+ |
private: |
// Abstracts away whether the paint is always part of the command or optional. |
template <typename T> static T* AsPtr(SkRecords::Optional<T>& x) { return x; } |