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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 ImageOrientation ImageSource::orientationAtIndex(size_t index) const | 130 ImageOrientation ImageSource::orientationAtIndex(size_t index) const |
131 { | 131 { |
132 return m_decoder ? m_decoder->orientationAtIndex(index) : DefaultImageOrient
ation; | 132 return m_decoder ? m_decoder->orientationAtIndex(index) : DefaultImageOrient
ation; |
133 } | 133 } |
134 | 134 |
135 bool ImageSource::frameHasAlphaAtIndex(size_t index) const | 135 bool ImageSource::frameHasAlphaAtIndex(size_t index) const |
136 { | 136 { |
137 return !m_decoder || m_decoder->frameHasAlphaAtIndex(index); | 137 return !m_decoder || m_decoder->frameHasAlphaAtIndex(index); |
138 } | 138 } |
139 | 139 |
140 bool ImageSource::frameIsCompleteAtIndex(size_t index) const | 140 bool ImageSource::frameIsFullyReceivedAtIndex(size_t index) const |
141 { | 141 { |
142 return m_decoder && m_decoder->frameIsCompleteAtIndex(index); | 142 return m_decoder && m_decoder->frameIsFullyReceivedAtIndex(index); |
143 } | 143 } |
144 | 144 |
145 size_t ImageSource::frameBytesAtIndex(size_t index) const | 145 size_t ImageSource::frameBytesAtIndex(size_t index) const |
146 { | 146 { |
147 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0; | 147 return m_decoder ? m_decoder->frameBytesAtIndex(index) : 0; |
148 } | 148 } |
149 | 149 |
150 } // namespace blink | 150 } // namespace blink |
OLD | NEW |