| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 ImageFrame::ImageFrame() | 35 ImageFrame::ImageFrame() |
| 36 : m_bitmap(NativeImageSkia::create()) | 36 : m_bitmap(NativeImageSkia::create()) |
| 37 , m_allocator(0) | 37 , m_allocator(0) |
| 38 , m_hasAlpha(false) | 38 , m_hasAlpha(false) |
| 39 , m_status(FrameEmpty) | 39 , m_status(FrameEmpty) |
| 40 , m_duration(0) | 40 , m_duration(0) |
| 41 , m_disposalMethod(DisposeNotSpecified) | 41 , m_disposalMethod(DisposeNotSpecified) |
| 42 , m_alphaBlendSource(BlendAtopPreviousFrame) | 42 , m_alphaBlendSource(BlendAtopPreviousFrame) |
| 43 , m_premultiplyAlpha(true) | 43 , m_premultiplyAlpha(true) |
| 44 , m_requiredPreviousFrameIndex(notFound) | 44 , m_requiredPreviousFrameIndex(kNotFound) |
| 45 #if !ASSERT_DISABLED | 45 #if !ASSERT_DISABLED |
| 46 , m_requiredPreviousFrameIndexValid(false) | 46 , m_requiredPreviousFrameIndexValid(false) |
| 47 #endif | 47 #endif |
| 48 { | 48 { |
| 49 } | 49 } |
| 50 | 50 |
| 51 ImageFrame& ImageFrame::operator=(const ImageFrame& other) | 51 ImageFrame& ImageFrame::operator=(const ImageFrame& other) |
| 52 { | 52 { |
| 53 if (this == &other) | 53 if (this == &other) |
| 54 return *this; | 54 return *this; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 void ImageFrame::zeroFillFrameRect(const IntRect& rect) | 150 void ImageFrame::zeroFillFrameRect(const IntRect& rect) |
| 151 { | 151 { |
| 152 if (rect.isEmpty()) | 152 if (rect.isEmpty()) |
| 153 return; | 153 return; |
| 154 | 154 |
| 155 m_bitmap->bitmap().eraseArea(rect, SkColorSetARGB(0, 0, 0, 0)); | 155 m_bitmap->bitmap().eraseArea(rect, SkColorSetARGB(0, 0, 0, 0)); |
| 156 setHasAlpha(true); | 156 setHasAlpha(true); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace WebCore | 159 } // namespace WebCore |
| OLD | NEW |