Index: src/effects/SkColorMatrixFilter.cpp |
diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp |
index 5b36a8f7e55df1dec60b77de2b29ba6fa81aec39..fc1b77b7d5e27f4f6ffbe4bf5ae2718daf3726d2 100644 |
--- a/src/effects/SkColorMatrixFilter.cpp |
+++ b/src/effects/SkColorMatrixFilter.cpp |
@@ -308,10 +308,8 @@ void SkColorMatrixFilter::flatten(SkFlattenableWriteBuffer& buffer) const { |
SkColorMatrixFilter::SkColorMatrixFilter(SkFlattenableReadBuffer& buffer) |
: INHERITED(buffer) { |
SkASSERT(buffer.getArrayCount() == 20); |
- buffer.readScalarArray(fMatrix.fMat, 20); |
- this->initState(fMatrix.fMat); |
- for (int i = 0; i < 20; ++i) { |
- buffer.validate(SkScalarIsFinite(fMatrix.fMat[i])); |
sugoi1
2013/12/06 18:39:04
I didn't find anything obviously wrong with removi
|
+ if (buffer.readScalarArray(fMatrix.fMat, 20)) { |
+ this->initState(fMatrix.fMat); |
} |
} |