| 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 13 matching lines...) Expand all Loading... |
| 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 "public/platform/WebVector.h" | 32 #include "public/platform/WebVector.h" |
| 33 #include "third_party/skia/include/core/SkBitmap.h" | 33 #include "third_party/skia/include/core/SkBitmap.h" |
| 34 #include "third_party/skia/include/core/SkColorPriv.h" |
| 34 #include "wtf/Allocator.h" | 35 #include "wtf/Allocator.h" |
| 35 #include "wtf/Assertions.h" | 36 #include "wtf/Assertions.h" |
| 36 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 37 | 38 |
| 38 namespace blink { | 39 namespace blink { |
| 39 | 40 |
| 40 // ImageFrame represents the decoded image data. This buffer is what all | 41 // ImageFrame represents the decoded image data. This buffer is what all |
| 41 // decoders write a single frame into. | 42 // decoders write a single frame into. |
| 42 class PLATFORM_EXPORT ImageFrame final { | 43 class PLATFORM_EXPORT ImageFrame final { |
| 43 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 44 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // The frame that must be decoded before this frame can be decoded. | 217 // The frame that must be decoded before this frame can be decoded. |
| 217 // WTF::kNotFound if this frame doesn't require any previous frame. | 218 // WTF::kNotFound if this frame doesn't require any previous frame. |
| 218 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never | 219 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never |
| 219 // be read for image formats that do not have multiple frames. | 220 // be read for image formats that do not have multiple frames. |
| 220 size_t m_requiredPreviousFrameIndex; | 221 size_t m_requiredPreviousFrameIndex; |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 } // namespace blink | 224 } // namespace blink |
| 224 | 225 |
| 225 #endif | 226 #endif |
| OLD | NEW |