Index: src/core/SkValidatingReadBuffer.cpp |
diff --git a/src/core/SkValidatingReadBuffer.cpp b/src/core/SkValidatingReadBuffer.cpp |
index 4a8ac472472fcbd0edcc77a1d4021ac164df5c9b..692d0dd4d18c83b0f7f5bd13e0bc229ba478253a 100644 |
--- a/src/core/SkValidatingReadBuffer.cpp |
+++ b/src/core/SkValidatingReadBuffer.cpp |
@@ -29,6 +29,10 @@ bool SkValidatingReadBuffer::validate(bool isValid) { |
return !fError; |
} |
+bool SkValidatingReadBuffer::isValid() const { |
+ return !fError; |
+} |
+ |
void SkValidatingReadBuffer::setMemory(const void* data, size_t size) { |
this->validate(IsPtrAlign4(data) && (SkAlign4(size) == size)); |
if (!fError) { |