| 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 15 matching lines...) Expand all Loading... |
| 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 "platform/graphics/skia/NativeImageSkia.h" | 32 #include "platform/graphics/skia/NativeImageSkia.h" |
| 33 #include "wtf/Assertions.h" | 33 #include "wtf/Assertions.h" |
| 34 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace blink { |
| 37 | 37 |
| 38 // ImageFrame represents the decoded image data. This buffer is what all | 38 // ImageFrame represents the decoded image data. This buffer is what all |
| 39 // decoders write a single frame into. | 39 // decoders write a single frame into. |
| 40 class PLATFORM_EXPORT ImageFrame { | 40 class PLATFORM_EXPORT ImageFrame { |
| 41 public: | 41 public: |
| 42 enum Status { FrameEmpty, FramePartial, FrameComplete }; | 42 enum Status { FrameEmpty, FramePartial, FrameComplete }; |
| 43 enum DisposalMethod { | 43 enum DisposalMethod { |
| 44 // If you change the numeric values of these, make sure you audit | 44 // 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 | 45 // all users, as some users may cast raw values to/from these |
| 46 // constants. | 46 // constants. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // The frame that must be decoded before this frame can be decoded. | 232 // The frame that must be decoded before this frame can be decoded. |
| 233 // WTF::kNotFound if this frame doesn't require any previous frame. | 233 // WTF::kNotFound if this frame doesn't require any previous frame. |
| 234 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never | 234 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never |
| 235 // be read for image formats that do not have multiple frames. | 235 // be read for image formats that do not have multiple frames. |
| 236 size_t m_requiredPreviousFrameIndex; | 236 size_t m_requiredPreviousFrameIndex; |
| 237 #if ENABLE(ASSERT) | 237 #if ENABLE(ASSERT) |
| 238 bool m_requiredPreviousFrameIndexValid; | 238 bool m_requiredPreviousFrameIndexValid; |
| 239 #endif | 239 #endif |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 } // namespace WebCore | 242 } // namespace blink |
| 243 | 243 |
| 244 #endif | 244 #endif |
| OLD | NEW |