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

Unified Diff: include/codec/SkCodec.h

Issue 2170793004: Remove unnecessary getColorSpace() API from SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Pass refs more efficiently Created 4 years, 5 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 | « dm/DMSrcSink.cpp ('k') | include/codec/SkEncodedInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/codec/SkCodec.h
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h
index 293068c2deecd10d4f0513974173a8b1c4595403..5c84e07c70c2b70c4d08be7e5f280f5272b0a006 100644
--- a/include/codec/SkCodec.h
+++ b/include/codec/SkCodec.h
@@ -109,13 +109,6 @@ public:
const SkEncodedInfo& getEncodedInfo() const { return fEncodedInfo; }
- /**
- * Returns the color space associated with the codec.
- * Does not affect ownership.
- * Might be NULL.
- */
- SkColorSpace* getColorSpace() const { return fColorSpace.get(); }
-
enum Origin {
kTopLeft_Origin = 1, // Default
kTopRight_Origin = 2, // Reflected across y-axis
@@ -662,7 +655,6 @@ private:
const SkImageInfo fSrcInfo;
SkAutoTDelete<SkStream> fStream;
bool fNeedsRewind;
- sk_sp<SkColorSpace> fColorSpace;
const Origin fOrigin;
// These fields are only meaningful during scanline decodes.
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | include/codec/SkEncodedInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698