Index: src/core/SkPaint.cpp |
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp |
index 123f20365e6ef2cf96a905e46681be48f684655d..d28168a58e9ea3c8fdbc248eeaa350e875031355 100644 |
--- a/src/core/SkPaint.cpp |
+++ b/src/core/SkPaint.cpp |
@@ -1567,14 +1567,14 @@ static size_t fill_out_rec(const SkPaint& paint, SkScalerContext::Rec* rec, |
size_t descSize = sizeof(*rec); |
if (pe) { |
- peBuffer->writeFlattenable(pe); |
+ pe->flatten(*peBuffer); |
descSize += peBuffer->bytesWritten(); |
entryCount += 1; |
rec->fMaskFormat = SkMask::kA8_Format; // force antialiasing when we do the scan conversion |
// seems like we could support kLCD as well at this point... |
} |
if (mf) { |
- mfBuffer->writeFlattenable(mf); |
+ mf->flatten(*mfBuffer); |
descSize += mfBuffer->bytesWritten(); |
entryCount += 1; |
rec->fMaskFormat = SkMask::kA8_Format; // force antialiasing with maskfilters |
@@ -1585,7 +1585,7 @@ static size_t fill_out_rec(const SkPaint& paint, SkScalerContext::Rec* rec, |
rec->ignorePreBlend(); |
} |
if (ra) { |
- raBuffer->writeFlattenable(ra); |
+ ra->flatten(*raBuffer); |
descSize += raBuffer->bytesWritten(); |
entryCount += 1; |
rec->fMaskFormat = SkMask::kA8_Format; // force antialiasing when we do the scan conversion |