aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/images/SkImageRef.h
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-03-17 17:59:53 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-03-17 17:59:53 +0000
commita14ea0e930c82daa2364ece4bd0b06256272302a (patch)
tree425f401e5731ead3050590fcc878ea49d006aaab /include/images/SkImageRef.h
parent452f844f64d97e0f54b9258b800755686193136e (diff)
Simplify font-chaining (fallbacks) to have fonthost just return the next
logical fontID. Extend ImageRef to accept an imagedecoder factory, to replace calling the std one. git-svn-id: http://skia.googlecode.com/svn/trunk@125 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/images/SkImageRef.h')
-rw-r--r--include/images/SkImageRef.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/images/SkImageRef.h b/include/images/SkImageRef.h
index 26ade5e03c..6ab6e525ff 100644
--- a/include/images/SkImageRef.h
+++ b/include/images/SkImageRef.h
@@ -52,6 +52,10 @@ public:
and ignore the bitmap parameter.
*/
bool getInfo(SkBitmap* bm);
+
+ SkImageDecoderFactory* getDecoderFactory() const { return fFactory; }
+ // returns the factory parameter
+ SkImageDecoderFactory* setDecoderFactory(SkImageDecoderFactory*);
// overrides
virtual void flatten(SkFlattenableWriteBuffer&) const;
@@ -81,10 +85,11 @@ private:
// requested state (or further, i.e. has pixels)
bool prepareBitmap(SkImageDecoder::Mode);
- SkStream* fStream;
- SkBitmap::Config fConfig;
- int fSampleSize;
- bool fErrorInDecoding;
+ SkImageDecoderFactory* fFactory; // may be null
+ SkStream* fStream;
+ SkBitmap::Config fConfig;
+ int fSampleSize;
+ bool fErrorInDecoding;
friend class SkImageRefPool;