aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-03-26 06:29:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-26 06:29:03 -0700
commitb880d7f87e0271f96e21a4d01071fbe8c9a28812 (patch)
tree1a985f81d927aa6b29c521a8ffc8e8b5c5d7943d /src/codec
parentdee3df930b83751577d5a3489d402c0c9e284495 (diff)
SkCodec: conditionally remove fInfo
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/SkCodec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codec/SkCodec.cpp b/src/codec/SkCodec.cpp
index 015b122974..a49586ffeb 100644
--- a/src/codec/SkCodec.cpp
+++ b/src/codec/SkCodec.cpp
@@ -49,7 +49,9 @@ SkCodec* SkCodec::NewFromData(SkData* data) {
SkCodec::SkCodec(const SkImageInfo& info, SkStream* stream)
: INHERITED(info)
+#ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO
, fInfo(info)
+#endif
, fStream(stream)
, fNeedsRewind(false)
{}