| 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 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 Certain, // The repetition count is known to be correct. | 149 Certain, // The repetition count is known to be correct. |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 BitmapImage(NativeImagePtr, ImageObserver* = 0); | 152 BitmapImage(NativeImagePtr, ImageObserver* = 0); |
| 153 BitmapImage(ImageObserver* = 0); | 153 BitmapImage(ImageObserver* = 0); |
| 154 | 154 |
| 155 #if PLATFORM(WIN) | 155 #if PLATFORM(WIN) |
| 156 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect&
dstRect, const IntSize& srcSize, CompositeOperator); | 156 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect&
dstRect, const IntSize& srcSize, CompositeOperator); |
| 157 #endif | 157 #endif |
| 158 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec
t& srcRect, CompositeOperator); | 158 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRec
t& srcRect, CompositeOperator); |
| 159 #if PLATFORM(QT) || PLATFORM(WX) | 159 #if PLATFORM(WX) |
| 160 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const T
ransformationMatrix& patternTransform, | 160 virtual void drawPattern(GraphicsContext*, const FloatRect& srcRect, const T
ransformationMatrix& patternTransform, |
| 161 const FloatPoint& phase, CompositeOperator, const F
loatRect& destRect); | 161 const FloatPoint& phase, CompositeOperator, const F
loatRect& destRect); |
| 162 #endif | 162 #endif |
| 163 size_t currentFrame() const { return m_currentFrame; } | 163 size_t currentFrame() const { return m_currentFrame; } |
| 164 size_t frameCount(); | 164 size_t frameCount(); |
| 165 NativeImagePtr frameAtIndex(size_t); | 165 NativeImagePtr frameAtIndex(size_t); |
| 166 bool frameIsCompleteAtIndex(size_t); | 166 bool frameIsCompleteAtIndex(size_t); |
| 167 float frameDurationAtIndex(size_t); | 167 float frameDurationAtIndex(size_t); |
| 168 bool frameHasAlphaAtIndex(size_t); | 168 bool frameHasAlphaAtIndex(size_t); |
| 169 | 169 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 unsigned m_decodedSize; // The current size of all decoded frames. | 244 unsigned m_decodedSize; // The current size of all decoded frames. |
| 245 | 245 |
| 246 mutable bool m_haveFrameCount; | 246 mutable bool m_haveFrameCount; |
| 247 size_t m_frameCount; | 247 size_t m_frameCount; |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 } | 250 } |
| 251 | 251 |
| 252 #endif | 252 #endif |
| OLD | NEW |