Index: src/images/SkImageDecoder.cpp |
diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp |
index 38aa7fda0d143a2134d89253c179f46781bb1f30..ea7b74cc80072a455b65354ac394517cc6f3b07a 100644 |
--- a/src/images/SkImageDecoder.cpp |
+++ b/src/images/SkImageDecoder.cpp |
@@ -50,6 +50,23 @@ SkImageDecoder::~SkImageDecoder() { |
SkSafeUnref(fAllocator); |
} |
+void SkImageDecoder::copyFieldsToOther(SkImageDecoder* other) { |
+ if (NULL == other) { |
+ return; |
+ } |
+ other->setPeeker(fPeeker); |
+ other->setChooser(fChooser); |
+ other->setAllocator(fAllocator); |
+ other->setSampleSize(fSampleSize); |
+ if (fUsePrefTable) { |
+ other->setPrefConfigTable(fPrefTable); |
+ } else { |
+ other->fDefaultPref = fDefaultPref; |
+ } |
+ other->setPreferQualityOverSpeed(fPreferQualityOverSpeed); |
+ other->setRequireUnpremultipliedColors(fRequireUnpremultipliedColors); |
+} |
+ |
SkImageDecoder::Format SkImageDecoder::getFormat() const { |
return kUnknown_Format; |
} |