- Timestamp:
- 08/15/08 13:25:16 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BAL/WKAL/Concretizations/Graphics/SDL/BCBitmapImageSDL.h
r243 r437 81 81 friend class GraphicsContext; 82 82 public: 83 BitmapImage(BalSurface*, ImageObserver* = 0); 84 BitmapImage(ImageObserver* = 0); 83 static PassRefPtr<BitmapImage> create(NativeImagePtr nativeImage, ImageObserver* observer = 0) 84 { 85 return adoptRef(new BitmapImage(nativeImage, observer)); 86 } 87 static PassRefPtr<BitmapImage> create(ImageObserver* observer = 0) 88 { 89 return adoptRef(new BitmapImage(observer)); 90 } 91 85 92 ~BitmapImage(); 93 94 virtual bool isBitmapImage() const { return true; } 86 95 87 96 virtual IntSize size() const; 97 IntSize currentFrameSize() const; 88 98 89 99 virtual bool dataChanged(bool allDataReceived); … … 100 110 101 111 protected: 112 BitmapImage(NativeImagePtr, ImageObserver* = 0); 113 BitmapImage(ImageObserver* = 0); 102 114 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator); 103 115 size_t currentFrame() const { return m_currentFrame; } … … 153 165 bool m_sizeAvailable; // Whether or not we can obtain the size of the first image frame yet from ImageIO. 154 166 unsigned m_decodedSize; // The current size of all decoded frames. 167 mutable bool m_hasUniformFrameSize; 155 168 156 169 mutable bool m_haveFrameCount;
