Index: src/core/SkWriteBuffer.cpp |
diff --git a/src/core/SkWriteBuffer.cpp b/src/core/SkWriteBuffer.cpp |
index 1159ef3383fef5603d08bbf046a8a47e2cd9a446..019bc247b59819aee3a4abad26f0a7625c0635b1 100644 |
--- a/src/core/SkWriteBuffer.cpp |
+++ b/src/core/SkWriteBuffer.cpp |
@@ -78,6 +78,15 @@ void SkBinaryWriteBuffer::writeColorArray(const SkColor* color, uint32_t count) |
fWriter.write(color, count * sizeof(SkColor)); |
} |
+void SkBinaryWriteBuffer::writeColor4f(const SkColor4f& color) { |
+ fWriter.write(&color, sizeof(SkColor4f)); |
+} |
+ |
+void SkBinaryWriteBuffer::writeColor4fArray(const SkColor4f* color, uint32_t count) { |
+ fWriter.write32(count); |
+ fWriter.write(color, count * sizeof(SkColor4f)); |
+} |
+ |
void SkBinaryWriteBuffer::writePoint(const SkPoint& point) { |
fWriter.writeScalar(point.fX); |
fWriter.writeScalar(point.fY); |