| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 4 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 4 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 const PaintFlags&, | 115 const PaintFlags&, |
| 116 const FloatRect& dst_rect, | 116 const FloatRect& dst_rect, |
| 117 const FloatRect& src_rect, | 117 const FloatRect& src_rect, |
| 118 RespectImageOrientationEnum, | 118 RespectImageOrientationEnum, |
| 119 ImageClampingMode) override; | 119 ImageClampingMode) override; |
| 120 | 120 |
| 121 size_t CurrentFrame() const { return current_frame_; } | 121 size_t CurrentFrame() const { return current_frame_; } |
| 122 | 122 |
| 123 sk_sp<SkImage> FrameAtIndex(size_t); | 123 sk_sp<SkImage> FrameAtIndex(size_t); |
| 124 | 124 |
| 125 bool FrameIsCompleteAtIndex(size_t) const; | 125 bool FrameIsReceivedAtIndex(size_t) const; |
| 126 float FrameDurationAtIndex(size_t) const; | 126 float FrameDurationAtIndex(size_t) const; |
| 127 bool FrameHasAlphaAtIndex(size_t); | 127 bool FrameHasAlphaAtIndex(size_t); |
| 128 ImageOrientation FrameOrientationAtIndex(size_t); | 128 ImageOrientation FrameOrientationAtIndex(size_t); |
| 129 | 129 |
| 130 sk_sp<SkImage> DecodeAndCacheFrame(size_t index); | 130 sk_sp<SkImage> DecodeAndCacheFrame(size_t index); |
| 131 void UpdateSize() const; | 131 void UpdateSize() const; |
| 132 | 132 |
| 133 // Returns the total number of bytes allocated for all framebuffers, i.e. | 133 // Returns the total number of bytes allocated for all framebuffers, i.e. |
| 134 // the sum of m_source.frameBytesAtIndex(...) for all frames. | 134 // the sum of m_source.frameBytesAtIndex(...) for all frames. |
| 135 size_t TotalFrameBytes(); | 135 size_t TotalFrameBytes(); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 size_t frame_count_; | 219 size_t frame_count_; |
| 220 | 220 |
| 221 RefPtr<WebTaskRunner> task_runner_; | 221 RefPtr<WebTaskRunner> task_runner_; |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); | 224 DEFINE_IMAGE_TYPE_CASTS(BitmapImage); |
| 225 | 225 |
| 226 } // namespace blink | 226 } // namespace blink |
| 227 | 227 |
| 228 #endif | 228 #endif |
| OLD | NEW |