Index: tests/PathTest.cpp |
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp |
index 6544c0b8d7d3375e6731580d38cdd178e2771c92..d879ea6e33e4523e67e296c12fcacd9f6800c739 100644 |
--- a/tests/PathTest.cpp |
+++ b/tests/PathTest.cpp |
@@ -1768,7 +1768,7 @@ static void write_and_read_back(skiatest::Reporter* reporter, |
const SkPath& p) { |
SkWriter32 writer(100); |
writer.writePath(p); |
- size_t size = writer.size(); |
+ size_t size = writer.bytesWritten(); |
SkAutoMalloc storage(size); |
writer.flatten(storage.get()); |
SkReader32 reader(storage.get(), size); |