Index: src/effects/SkColorCubeFilter.cpp |
diff --git a/src/effects/SkColorCubeFilter.cpp b/src/effects/SkColorCubeFilter.cpp |
index 44aaf8b830545c933bbebecae5ebb230eaf89bba..d59f123a80aaf0bfd2c37f6650571873a0f8f6c2 100644 |
--- a/src/effects/SkColorCubeFilter.cpp |
+++ b/src/effects/SkColorCubeFilter.cpp |
@@ -138,17 +138,17 @@ void SkColorCubeFilter::filterSpan(const SkPMColor src[], int count, SkPMColor d |
SkFlattenable* SkColorCubeFilter::CreateProc(SkReadBuffer& buffer) { |
int cubeDimension = buffer.readInt(); |
- SkAutoDataUnref cubeData(buffer.readByteArrayAsData()); |
- if (!buffer.validate(is_valid_3D_lut(cubeData, cubeDimension))) { |
+ auto cubeData(buffer.readByteArrayAsData()); |
+ if (!buffer.validate(is_valid_3D_lut(cubeData.get(), cubeDimension))) { |
return nullptr; |
} |
- return Create(cubeData, cubeDimension); |
+ return Create(cubeData.get(), cubeDimension); |
} |
void SkColorCubeFilter::flatten(SkWriteBuffer& buffer) const { |
this->INHERITED::flatten(buffer); |
buffer.writeInt(fCache.cubeDimension()); |
- buffer.writeDataAsByteArray(fCubeData); |
+ buffer.writeDataAsByteArray(fCubeData.get()); |
} |
#ifndef SK_IGNORE_TO_STRING |