Index: src/codec/SkRawCodec.cpp |
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp |
index 4cd44a4df1f8c6300bc9ae3155ce436078b17f8b..655d14ea076d7ec12955691d23237f433c61ac57 100644 |
--- a/src/codec/SkRawCodec.cpp |
+++ b/src/codec/SkRawCodec.cpp |
@@ -572,13 +572,13 @@ SkCodec* SkRawCodec::NewFromStream(SkStream* stream) { |
if (::piex::IsRaw(&piexStream)) { |
::piex::Error error = ::piex::GetPreviewImageData(&piexStream, &imageData); |
- if (error == ::piex::Error::kOk && imageData.preview_length > 0) { |
+ if (error == ::piex::Error::kOk && imageData.preview.length > 0) { |
scroggo
2016/02/23 15:55:23
Unfortunately, this will mean that we need to upda
|
#if !defined(GOOGLE3) |
// transferBuffer() is destructive to the rawStream. Abandon the rawStream after this |
// function call. |
// FIXME: one may avoid the copy of memoryStream and use the buffered rawStream. |
SkMemoryStream* memoryStream = |
- rawStream->transferBuffer(imageData.preview_offset, imageData.preview_length); |
+ rawStream->transferBuffer(imageData.preview.offset, imageData.preview.length); |
return memoryStream ? SkJpegCodec::NewFromStream(memoryStream) : nullptr; |
#else |
return nullptr; |