| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 private: | 100 private: |
| 101 enum RepetitionCountStatus { | 101 enum RepetitionCountStatus { |
| 102 Unknown, // We haven't checked the source's repetition count. | 102 Unknown, // We haven't checked the source's repetition count. |
| 103 Uncertain, // We have a repetition count, but it might be wrong (some GIF
s have a count after the image data, and will report "loop once" until all data
has been decoded). | 103 Uncertain, // We have a repetition count, but it might be wrong (some GIF
s have a count after the image data, and will report "loop once" until all data
has been decoded). |
| 104 Certain // The repetition count is known to be correct. | 104 Certain // The repetition count is known to be correct. |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 BitmapImage(const SkBitmap &, ImageObserver* = 0); | 107 BitmapImage(const SkBitmap &, ImageObserver* = 0); |
| 108 BitmapImage(ImageObserver* = 0); | 108 BitmapImage(ImageObserver* = 0); |
| 109 | 109 |
| 110 void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRe
ct& srcRect, RespectImageOrientationEnum, ImageClampingMode) override; | 110 void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRe
ct& srcRect, RespectImageOrientationEnum, ImageClampingMode, const KURL&) overri
de; |
| 111 | 111 |
| 112 size_t currentFrame() const { return m_currentFrame; } | 112 size_t currentFrame() const { return m_currentFrame; } |
| 113 size_t frameCount(); | 113 size_t frameCount(); |
| 114 | 114 |
| 115 PassRefPtr<SkImage> frameAtIndex(size_t); | 115 PassRefPtr<SkImage> frameAtIndex(size_t); |
| 116 | 116 |
| 117 bool frameIsCompleteAtIndex(size_t); | 117 bool frameIsCompleteAtIndex(size_t); |
| 118 float frameDurationAtIndex(size_t); | 118 float frameDurationAtIndex(size_t); |
| 119 bool frameHasAlphaAtIndex(size_t); | 119 bool frameHasAlphaAtIndex(size_t); |
| 120 ImageOrientation frameOrientationAtIndex(size_t); | 120 ImageOrientation frameOrientationAtIndex(size_t); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. | 188 bool m_sizeAvailable : 1; // Whether or not we can obtain the size of the fi
rst image frame yet from ImageIO. |
| 189 mutable bool m_hasUniformFrameSize : 1; | 189 mutable bool m_hasUniformFrameSize : 1; |
| 190 mutable bool m_haveFrameCount : 1; | 190 mutable bool m_haveFrameCount : 1; |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); | 193 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); |
| 194 | 194 |
| 195 } // namespace blink | 195 } // namespace blink |
| 196 | 196 |
| 197 #endif | 197 #endif |
| OLD | NEW |