Index: src/core/SkValidatingReadBuffer.cpp |
diff --git a/src/core/SkValidatingReadBuffer.cpp b/src/core/SkValidatingReadBuffer.cpp |
index 52006f23ad066391ee9731f942d737b54170c8b6..b85e532d0cf4de2a88fdeeb5751715859a46c229 100644 |
--- a/src/core/SkValidatingReadBuffer.cpp |
+++ b/src/core/SkValidatingReadBuffer.cpp |
@@ -145,6 +145,13 @@ void SkValidatingReadBuffer::readRect(SkRect* rect) { |
} |
} |
+void SkValidatingReadBuffer::readRRect(SkRRect* rrect) { |
+ const void* ptr = this->skip(sizeof(SkRRect)); |
+ if (!fError) { |
+ memcpy(rrect, ptr, sizeof(SkRRect)); |
+ } |
+} |
+ |
void SkValidatingReadBuffer::readRegion(SkRegion* region) { |
size_t size = 0; |
if (!fError) { |