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 27 matching lines...) Expand all Loading... |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 // ImageFrame represents the decoded image data. This buffer is what all | 42 // ImageFrame represents the decoded image data. This buffer is what all |
43 // decoders write a single frame into. | 43 // decoders write a single frame into. |
44 class PLATFORM_EXPORT ImageFrame final { | 44 class PLATFORM_EXPORT ImageFrame final { |
45 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 45 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
46 | 46 |
47 public: | 47 public: |
48 enum Status { FrameEmpty, FramePartial, FrameComplete }; | 48 enum Status { FrameEmpty, FrameAllocated, FramePartial, FrameComplete }; |
49 enum DisposalMethod { | 49 enum DisposalMethod { |
50 // If you change the numeric values of these, make sure you audit | 50 // If you change the numeric values of these, make sure you audit |
51 // all users, as some users may cast raw values to/from these | 51 // all users, as some users may cast raw values to/from these |
52 // constants. | 52 // constants. |
53 DisposeNotSpecified, // Leave frame in framebuffer | 53 DisposeNotSpecified, // Leave frame in framebuffer |
54 DisposeKeep, // Leave frame in framebuffer | 54 DisposeKeep, // Leave frame in framebuffer |
55 DisposeOverwriteBgcolor, // Clear frame to fully transparent | 55 DisposeOverwriteBgcolor, // Clear frame to fully transparent |
56 DisposeOverwritePrevious // Clear frame to previous framebuffer contents | 56 DisposeOverwritePrevious // Clear frame to previous framebuffer contents |
57 }; | 57 }; |
58 // Indicates how non-opaque pixels in the current frame rectangle | 58 // Indicates how non-opaque pixels in the current frame rectangle |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 // The frame that must be decoded before this frame can be decoded. | 292 // The frame that must be decoded before this frame can be decoded. |
293 // WTF::kNotFound if this frame doesn't require any previous frame. | 293 // WTF::kNotFound if this frame doesn't require any previous frame. |
294 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never | 294 // This is used by ImageDecoder::clearCacheExceptFrame(), and will never |
295 // be read for image formats that do not have multiple frames. | 295 // be read for image formats that do not have multiple frames. |
296 size_t m_requiredPreviousFrameIndex; | 296 size_t m_requiredPreviousFrameIndex; |
297 }; | 297 }; |
298 | 298 |
299 } // namespace blink | 299 } // namespace blink |
300 | 300 |
301 #endif | 301 #endif |
OLD | NEW |