Index: tests/RecordReplaceDrawTest.cpp |
diff --git a/tests/RecordReplaceDrawTest.cpp b/tests/RecordReplaceDrawTest.cpp |
index 6893876402efb3ae25c1c3a7b67f21e8681a6d3a..23bf9adb5a62100ffe25b548c20dd38331fd141f 100644 |
--- a/tests/RecordReplaceDrawTest.cpp |
+++ b/tests/RecordReplaceDrawTest.cpp |
@@ -72,7 +72,7 @@ static SkImage* make_image(SkColor color) { |
const SkPMColor pmcolor = SkPreMultiplyColor(color); |
const SkImageInfo info = SkImageInfo::MakeN32Premul(kWidth, kHeight); |
const size_t rowBytes = info.minRowBytes(); |
- const size_t size = rowBytes * info.fHeight; |
+ const size_t size = rowBytes * info.height(); |
SkAutoMalloc addr(size); |
sk_memset32((SkPMColor*)addr.get(), pmcolor, SkToInt(size >> 2)); |