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) 2008, 2009 Google, Inc. | 3 * Copyright (C) 2008, 2009 Google, Inc. |
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 #include "config.h" | 27 #include "config.h" |
28 #include "platform/image-decoders/ImageDecoder.h" | 28 #include "platform/image-decoders/ImageDecoder.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 ImageFrame::ImageFrame() | 32 ImageFrame::ImageFrame() |
33 : m_allocator(0) | 33 : m_allocator(0) |
34 , m_hasAlpha(false) | 34 , m_hasAlpha(true) |
35 , m_status(FrameEmpty) | 35 , m_status(FrameEmpty) |
36 , m_duration(0) | 36 , m_duration(0) |
37 , m_disposalMethod(DisposeNotSpecified) | 37 , m_disposalMethod(DisposeNotSpecified) |
38 , m_alphaBlendSource(BlendAtopPreviousFrame) | 38 , m_alphaBlendSource(BlendAtopPreviousFrame) |
39 , m_premultiplyAlpha(true) | 39 , m_premultiplyAlpha(true) |
40 , m_pixelsChanged(false) | 40 , m_pixelsChanged(false) |
41 , m_requiredPreviousFrameIndex(kNotFound) | 41 , m_requiredPreviousFrameIndex(kNotFound) |
42 #if ENABLE(ASSERT) | 42 #if ENABLE(ASSERT) |
43 , m_requiredPreviousFrameIndexValid(false) | 43 , m_requiredPreviousFrameIndexValid(false) |
44 #endif | 44 #endif |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 void ImageFrame::zeroFillFrameRect(const IntRect& rect) | 151 void ImageFrame::zeroFillFrameRect(const IntRect& rect) |
152 { | 152 { |
153 if (rect.isEmpty()) | 153 if (rect.isEmpty()) |
154 return; | 154 return; |
155 | 155 |
156 m_bitmap.eraseArea(rect, SkColorSetARGB(0, 0, 0, 0)); | 156 m_bitmap.eraseArea(rect, SkColorSetARGB(0, 0, 0, 0)); |
157 setHasAlpha(true); | 157 setHasAlpha(true); |
158 } | 158 } |
159 | 159 |
160 } // namespace blink | 160 } // namespace blink |
OLD | NEW |