| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2009-2010. 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 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef ImageFrame_h | 27 #ifndef ImageFrame_h |
| 28 #define ImageFrame_h | 28 #define ImageFrame_h |
| 29 | 29 |
| 30 #include "platform/PlatformExport.h" | 30 #include "platform/PlatformExport.h" |
| 31 #include "platform/geometry/IntRect.h" | 31 #include "platform/geometry/IntRect.h" |
| 32 #include "third_party/skia/include/core/SkBitmap.h" | 32 #include "third_party/skia/include/core/SkBitmap.h" |
| 33 #include "wtf/Allocator.h" |
| 33 #include "wtf/Assertions.h" | 34 #include "wtf/Assertions.h" |
| 34 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 35 | 36 |
| 36 namespace blink { | 37 namespace blink { |
| 37 | 38 |
| 38 // ImageFrame represents the decoded image data. This buffer is what all | 39 // ImageFrame represents the decoded image data. This buffer is what all |
| 39 // decoders write a single frame into. | 40 // decoders write a single frame into. |
| 40 class PLATFORM_EXPORT ImageFrame { | 41 class PLATFORM_EXPORT ImageFrame final { |
| 42 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 41 public: | 43 public: |
| 42 enum Status { FrameEmpty, FramePartial, FrameComplete }; | 44 enum Status { FrameEmpty, FramePartial, FrameComplete }; |
| 43 enum DisposalMethod { | 45 enum DisposalMethod { |
| 44 // If you change the numeric values of these, make sure you audit | 46 // If you change the numeric values of these, make sure you audit |
| 45 // all users, as some users may cast raw values to/from these | 47 // all users, as some users may cast raw values to/from these |
| 46 // constants. | 48 // constants. |
| 47 DisposeNotSpecified, // Leave frame in framebuffer | 49 DisposeNotSpecified, // Leave frame in framebuffer |
| 48 DisposeKeep, // Leave frame in framebuffer | 50 DisposeKeep, // Leave frame in framebuffer |
| 49 DisposeOverwriteBgcolor, // Clear frame to fully transparent | 51 DisposeOverwriteBgcolor, // Clear frame to fully transparent |
| 50 DisposeOverwritePrevious // Clear frame to previous framebuffer contents | 52 DisposeOverwritePrevious // Clear frame to previous framebuffer contents |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // The frame that must be decoded before this frame can be decoded. | 216 // The frame that must be decoded before this frame can be decoded. |
| 215 // WTF::kNotFound if this frame doesn't require any previous frame. | 217 // WTF::kNotFound if this frame doesn't require any previous frame. |
| 216 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never | 218 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never |
| 217 // be read for image formats that do not have multiple frames. | 219 // be read for image formats that do not have multiple frames. |
| 218 size_t m_requiredPreviousFrameIndex; | 220 size_t m_requiredPreviousFrameIndex; |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 } // namespace blink | 223 } // namespace blink |
| 222 | 224 |
| 223 #endif | 225 #endif |
| OLD | NEW |