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

Unified Diff: src/codec/SkSampledCodec.h

Issue 1518743002: Add reallyHasAlpha() to SkAndroidCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
Index: src/codec/SkSampledCodec.h
diff --git a/src/codec/SkSampledCodec.h b/src/codec/SkSampledCodec.h
index b3a59126d26c003997cb6426959e49a54e1098f0..6a2070a609b08e8b5ef1c3f139bd3661b33a1bdb 100644
--- a/src/codec/SkSampledCodec.h
+++ b/src/codec/SkSampledCodec.h
@@ -32,6 +32,8 @@ protected:
SkCodec::Result onGetAndroidPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
const AndroidOptions& options) override;
+ bool onReallyHasAlpha() const override { return fCodec->reallyHasAlpha(); }
+
private:
/**
* Find the best way to account for native scaling.

Powered by Google App Engine
This is Rietveld 408576698