Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: src/images/SkImageDecoder.cpp

Issue 18655007: Allow ico decoder to decode PNG sub-images. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkImageDecoder.h ('k') | src/images/SkImageDecoder_libico.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « include/core/SkImageDecoder.h ('k') | src/images/SkImageDecoder_libico.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698