- Timestamp:
- 02/18/10 13:55:47 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BAL/ImageDecoder/WebCore/PNG/WK/BCPNGImageDecoderWK.h
r1296 r1380 38 38 public: 39 39 PNGImageDecoder(); 40 ~PNGImageDecoder();40 virtual ~PNGImageDecoder(); 41 41 42 // ImageDecoder 42 43 virtual String filenameExtension() const { return "png"; } 43 44 // Take the data and store it.45 44 virtual void setData(SharedBuffer* data, bool allDataReceived); 46 47 // Whether or not the size information has been decoded yet.48 45 virtual bool isSizeAvailable(); 49 50 46 virtual RGBA32Buffer* frameBufferAtIndex(size_t index); 51 52 void decode(bool sizeOnly = false);53 47 54 48 // Callbacks from libpng … … 59 53 60 54 private: 55 // Decodes the image. If |onlySize| is true, stops decoding after 56 // calculating the image size. 57 void decode(bool onlySize); 58 61 59 OwnPtr<PNGImageReader> m_reader; 62 60 };
