aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-06-11 10:33:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-11 10:33:13 -0700
commit5926b86b90c68bffefbdc8639e41b5bc9102cec6 (patch)
treea20f97bc8a3c5f8224071b23c0b1112f669f05bf /include
parentd58a0ba9cff9fcefe5047e88ccb4a6e76c591c40 (diff)
hide SkImageDecoder::Chooser
BUG=skia: R=scroggo@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/331433003
Diffstat (limited to 'include')
-rw-r--r--include/core/SkImageDecoder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkImageDecoder.h b/include/core/SkImageDecoder.h
index f8e682baf0..e8e8e01337 100644
--- a/include/core/SkImageDecoder.h
+++ b/include/core/SkImageDecoder.h
@@ -137,6 +137,7 @@ public:
Peeker* getPeeker() const { return fPeeker; }
Peeker* setPeeker(Peeker*);
+#ifdef SK_SUPPORT_LEGACY_IMAGEDECODER_CHOOSER
/** \class Chooser
Base class for optional callbacks to choose an image from a format that
@@ -158,6 +159,7 @@ public:
Chooser* getChooser() const { return fChooser; }
Chooser* setChooser(Chooser*);
+#endif
/**
* Optional table describing the caller's preferred config based on
@@ -436,9 +438,11 @@ public:
protected:
SkImageDecoder();
+#ifdef SK_SUPPORT_LEGACY_IMAGEDECODER_CHOOSER
// helper function for decoders to handle the (common) case where there is only
// once choice available in the image file.
bool chooseFromOneChoice(SkColorType, int width, int height) const;
+#endif
/* Helper for subclasses. Call this to allocate the pixel memory given the bitmap's
width/height/rowbytes/config. Returns true on success. This method handles checking
@@ -469,7 +473,9 @@ protected:
private:
Peeker* fPeeker;
+#ifdef SK_SUPPORT_LEGACY_IMAGEDECODER_CHOOSER
Chooser* fChooser;
+#endif
SkBitmap::Allocator* fAllocator;
int fSampleSize;
SkBitmap::Config fDefaultPref; // use if fUsePrefTable is false