Index: src/pdf/SkPDFStream.cpp |
diff --git a/src/pdf/SkPDFStream.cpp b/src/pdf/SkPDFStream.cpp |
index 69ce317bb9ccd50aafa8d1c5f149e8dd8decc795..b8f2e4e92b896d656e9a63d50ae7e8574f99ea1f 100644 |
--- a/src/pdf/SkPDFStream.cpp |
+++ b/src/pdf/SkPDFStream.cpp |
@@ -20,7 +20,7 @@ void SkPDFStream::emitObject(SkWStream* stream, |
const SkPDFSubstituteMap& substitutes) const { |
SkASSERT(fCompressedData); |
this->INHERITED::emitObject(stream, objNumMap, substitutes); |
- // Note: emitObject isn't marked const, but could be in the future |
+ // duplicate (a cheap operation) preserves const on fCompressedData. |
SkAutoTDelete<SkStreamRewindable> dup(fCompressedData->duplicate()); |
SkASSERT(dup); |
SkASSERT(dup->hasLength()); |