| 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 class SkImage; | 38 class SkImage; |
| 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 { kFrameEmpty, kFramePartial, kFrameComplete }; | 48 enum Status { kFrameEmpty, kFrameAllocated, kFramePartial, kFrameComplete }; |
| 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 kDisposeNotSpecified, // Leave frame in framebuffer | 53 kDisposeNotSpecified, // Leave frame in framebuffer |
| 54 kDisposeKeep, // Leave frame in framebuffer | 54 kDisposeKeep, // Leave frame in framebuffer |
| 55 kDisposeOverwriteBgcolor, // Clear frame to fully transparent | 55 kDisposeOverwriteBgcolor, // Clear frame to fully transparent |
| 56 kDisposeOverwritePrevious // Clear frame to previous framebuffer contents | 56 kDisposeOverwritePrevious // 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // The frame that must be decoded before this frame can be decoded. | 294 // The frame that must be decoded before this frame can be decoded. |
| 295 // WTF::kNotFound if this frame doesn't require any previous frame. | 295 // WTF::kNotFound if this frame doesn't require any previous frame. |
| 296 // This is used by ImageDecoder::ClearCacheExceptFrame(), and will never | 296 // This is used by ImageDecoder::ClearCacheExceptFrame(), and will never |
| 297 // be read for image formats that do not have multiple frames. | 297 // be read for image formats that do not have multiple frames. |
| 298 size_t required_previous_frame_index_; | 298 size_t required_previous_frame_index_; |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 } // namespace blink | 301 } // namespace blink |
| 302 | 302 |
| 303 #endif | 303 #endif |
| OLD | NEW |