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

Unified Diff: src/codec/SkAndroidCodec.cpp

Issue 1518743002: Add reallyHasAlpha() to SkAndroidCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Change comment on onReallyHasAlpha Created 5 years 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/codec/SkCodec.h ('k') | src/codec/SkSampledCodec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkAndroidCodec.cpp
diff --git a/src/codec/SkAndroidCodec.cpp b/src/codec/SkAndroidCodec.cpp
index c26b3eff9b49322d6f7a13f9564c212b1a35537a..5962102a4c78defa19d358448a8a992382d79f7f 100644
--- a/src/codec/SkAndroidCodec.cpp
+++ b/src/codec/SkAndroidCodec.cpp
@@ -16,8 +16,9 @@ static bool is_valid_sample_size(int sampleSize) {
return sampleSize > 0;
}
-SkAndroidCodec::SkAndroidCodec(const SkImageInfo& info)
- : fInfo(info)
+SkAndroidCodec::SkAndroidCodec(SkCodec* codec)
+ : fInfo(codec->getInfo())
+ , fCodec(codec)
{}
SkAndroidCodec* SkAndroidCodec::NewFromStream(SkStream* stream, SkPngChunkReader* chunkReader) {
« no previous file with comments | « include/codec/SkCodec.h ('k') | src/codec/SkSampledCodec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698