| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 4 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 4 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 virtual NSImage* getNSImage(); | 140 virtual NSImage* getNSImage(); |
| 141 virtual CFDataRef getTIFFRepresentation(); | 141 virtual CFDataRef getTIFFRepresentation(); |
| 142 #endif | 142 #endif |
| 143 | 143 |
| 144 #if USE(CG) | 144 #if USE(CG) |
| 145 virtual CGImageRef getCGImageRef(); | 145 virtual CGImageRef getCGImageRef(); |
| 146 virtual CGImageRef getFirstCGImageRefOfSize(const IntSize&); | 146 virtual CGImageRef getFirstCGImageRefOfSize(const IntSize&); |
| 147 virtual RetainPtr<CFArrayRef> getCGImageArray(); | 147 virtual RetainPtr<CFArrayRef> getCGImageArray(); |
| 148 #endif | 148 #endif |
| 149 | 149 |
| 150 #if PLATFORM(WIN) || (PLATFORM(QT) && OS(WINDOWS)) | 150 #if PLATFORM(WIN) |
| 151 static PassRefPtr<BitmapImage> create(HBITMAP); | 151 static PassRefPtr<BitmapImage> create(HBITMAP); |
| 152 #endif | 152 #endif |
| 153 #if PLATFORM(WIN) | 153 #if PLATFORM(WIN) |
| 154 virtual bool getHBITMAP(HBITMAP); | 154 virtual bool getHBITMAP(HBITMAP); |
| 155 virtual bool getHBITMAPOfSize(HBITMAP, LPSIZE); | 155 virtual bool getHBITMAPOfSize(HBITMAP, LPSIZE); |
| 156 #endif | 156 #endif |
| 157 | 157 |
| 158 #if PLATFORM(GTK) | 158 #if PLATFORM(GTK) |
| 159 virtual GdkPixbuf* getGdkPixbuf(); | 159 virtual GdkPixbuf* getGdkPixbuf(); |
| 160 #endif | 160 #endif |
| (...skipping 19 matching lines...) Expand all Loading... |
| 180 Certain // The repetition count is known to be correct. | 180 Certain // The repetition count is known to be correct. |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 BitmapImage(NativeImagePtr, ImageObserver* = 0); | 183 BitmapImage(NativeImagePtr, ImageObserver* = 0); |
| 184 BitmapImage(ImageObserver* = 0); | 184 BitmapImage(ImageObserver* = 0); |
| 185 | 185 |
| 186 #if PLATFORM(WIN) | 186 #if PLATFORM(WIN) |
| 187 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect&
dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator); | 187 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect&
dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator); |
| 188 #endif | 188 #endif |
| 189 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec
t& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode); | 189 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec
t& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode); |
| 190 #if USE(CG) || PLATFORM(CHROMIUM) || PLATFORM(BLACKBERRY) | 190 #if USE(CG) || PLATFORM(CHROMIUM) |
| 191 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec
t& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode, RespectIma
geOrientationEnum) OVERRIDE; | 191 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec
t& srcRect, ColorSpace styleColorSpace, CompositeOperator, BlendMode, RespectIma
geOrientationEnum) OVERRIDE; |
| 192 #endif | 192 #endif |
| 193 | 193 |
| 194 #if (OS(WINCE) && !PLATFORM(QT)) | |
| 195 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const A
ffineTransform& patternTransform, | |
| 196 const FloatPoint& phase, ColorSpace styleColorSpace
, CompositeOperator, const FloatRect& destRect); | |
| 197 #endif | |
| 198 | |
| 199 size_t currentFrame() const { return m_currentFrame; } | 194 size_t currentFrame() const { return m_currentFrame; } |
| 200 virtual size_t frameCount(); | 195 virtual size_t frameCount(); |
| 201 NativeImagePtr frameAtIndex(size_t); | 196 NativeImagePtr frameAtIndex(size_t); |
| 202 bool frameIsCompleteAtIndex(size_t); | 197 bool frameIsCompleteAtIndex(size_t); |
| 203 float frameDurationAtIndex(size_t); | 198 float frameDurationAtIndex(size_t); |
| 204 bool frameHasAlphaAtIndex(size_t); | 199 bool frameHasAlphaAtIndex(size_t); |
| 205 ImageOrientation frameOrientationAtIndex(size_t); | 200 ImageOrientation frameOrientationAtIndex(size_t); |
| 206 | 201 |
| 207 // Decodes and caches a frame. Never accessed except internally. | 202 // Decodes and caches a frame. Never accessed except internally. |
| 208 void cacheFrame(size_t index); | 203 void cacheFrame(size_t index); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 bool m_allDataReceived : 1; // Whether or not we've received all our data. | 286 bool m_allDataReceived : 1; // Whether or not we've received all our data. |
| 292 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable
has the final overall image size yet. | 287 mutable bool m_haveSize : 1; // Whether or not our |m_size| member variable
has the final overall image size yet. |
| 293 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. | 288 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. |
| 294 mutable bool m_hasUniformFrameSize : 1; | 289 mutable bool m_hasUniformFrameSize : 1; |
| 295 mutable bool m_haveFrameCount : 1; | 290 mutable bool m_haveFrameCount : 1; |
| 296 }; | 291 }; |
| 297 | 292 |
| 298 } | 293 } |
| 299 | 294 |
| 300 #endif | 295 #endif |
| OLD | NEW |