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) 2007 Alp Toker <alp.toker@collabora.co.uk> | 3 * Copyright (C) 2007 Alp Toker <alp.toker@collabora.co.uk> |
4 * Copyright (C) 2008, Google Inc. All rights reserved. | 4 * Copyright (C) 2008, Google Inc. All rights reserved. |
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 bool ImageSource::frameHasAlphaAtIndex(size_t index) const | 136 bool ImageSource::frameHasAlphaAtIndex(size_t index) const |
137 { | 137 { |
138 return !m_decoder || m_decoder->frameHasAlphaAtIndex(index); | 138 return !m_decoder || m_decoder->frameHasAlphaAtIndex(index); |
139 } | 139 } |
140 | 140 |
141 bool ImageSource::frameIsCompleteAtIndex(size_t index) const | 141 bool ImageSource::frameIsCompleteAtIndex(size_t index) const |
142 { | 142 { |
143 return m_decoder && m_decoder->frameIsCompleteAtIndex(index); | 143 return m_decoder && m_decoder->frameIsCompleteAtIndex(index); |
144 } | 144 } |
145 | 145 |
146 bool ImageSource::frameIsLazyDecodedAtIndex(size_t index) const | |
147 { | |
148 return m_decoder && m_decoder->frameIsCachedAndLazyDecodedAtIndex(index); | |
149 } | |
150 | |
151 size_t ImageSource::frameBytesAtIndex(size_t index) const | 146 size_t ImageSource::frameBytesAtIndex(size_t index) const |
152 { | 147 { |
153 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0; | 148 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0; |
154 } | 149 } |
155 | 150 |
156 } // namespace blink | 151 } // namespace blink |
OLD | NEW |