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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 return IntSize(size.height(), size.width()); | 94 return IntSize(size.height(), size.width()); |
95 | 95 |
96 return size; | 96 return size; |
97 } | 97 } |
98 | 98 |
99 bool ImageSource::getHotSpot(IntPoint& hotSpot) const | 99 bool ImageSource::getHotSpot(IntPoint& hotSpot) const |
100 { | 100 { |
101 return m_decoder ? m_decoder->hotSpot(hotSpot) : false; | 101 return m_decoder ? m_decoder->hotSpot(hotSpot) : false; |
102 } | 102 } |
103 | 103 |
104 size_t ImageSource::bytesDecodedToDetermineProperties() const | |
105 { | |
106 return 0; | |
107 } | |
108 | |
109 int ImageSource::repetitionCount() | 104 int ImageSource::repetitionCount() |
110 { | 105 { |
111 return m_decoder ? m_decoder->repetitionCount() : cAnimationNone; | 106 return m_decoder ? m_decoder->repetitionCount() : cAnimationNone; |
112 } | 107 } |
113 | 108 |
114 size_t ImageSource::frameCount() const | 109 size_t ImageSource::frameCount() const |
115 { | 110 { |
116 return m_decoder ? m_decoder->frameCount() : 0; | 111 return m_decoder ? m_decoder->frameCount() : 0; |
117 } | 112 } |
118 | 113 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 } | 161 } |
167 | 162 |
168 unsigned ImageSource::frameBytesAtIndex(size_t index) const | 163 unsigned ImageSource::frameBytesAtIndex(size_t index) const |
169 { | 164 { |
170 if (!m_decoder) | 165 if (!m_decoder) |
171 return 0; | 166 return 0; |
172 return m_decoder->frameBytesAtIndex(index); | 167 return m_decoder->frameBytesAtIndex(index); |
173 } | 168 } |
174 | 169 |
175 } | 170 } |
OLD | NEW |