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 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
5 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) | 5 * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
286 | 286 |
287 virtual int repetitionCount() const { return cAnimationNone; } | 287 virtual int repetitionCount() const { return cAnimationNone; } |
288 | 288 |
289 // Decodes as much of the requested frame as possible, and returns an | 289 // Decodes as much of the requested frame as possible, and returns an |
290 // ImageDecoder-owned pointer. | 290 // ImageDecoder-owned pointer. |
291 virtual ImageFrame* frameBufferAtIndex(size_t) = 0; | 291 virtual ImageFrame* frameBufferAtIndex(size_t) = 0; |
292 | 292 |
293 // Make the best effort guess to check if the requested frame has alpha channel. | 293 // Make the best effort guess to check if the requested frame has alpha channel. |
294 virtual bool frameHasAlphaAtIndex(size_t) const; | 294 virtual bool frameHasAlphaAtIndex(size_t) const; |
295 | 295 |
296 // Whether or not the frame is completely decoded or fully received. | |
297 // This method is used by animated images only. | |
Peter Kasting
2013/04/23 21:43:20
I'm not terribly comfortable with this comment. I
Alpha Left Google
2013/04/25 23:02:44
I'm pretty sure this API is used only for animated
Peter Kasting
2013/04/25 23:22:32
But you're adding the function in this CL, and the
| |
298 virtual bool frameIsCompleteAtIndex(size_t) const { return false; } | |
299 | |
300 // Duration for displaying a frame in seconds. This method is used by an imated images only. | |
301 virtual float frameDurationAtIndex(size_t) const { return 0; } | |
302 | |
296 // Number of bytes in the decoded frame requested. Return 0 if not yet d ecoded. | 303 // Number of bytes in the decoded frame requested. Return 0 if not yet d ecoded. |
297 virtual unsigned frameBytesAtIndex(size_t) const; | 304 virtual unsigned frameBytesAtIndex(size_t) const; |
298 | 305 |
299 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorPro file = flag; } | 306 void setIgnoreGammaAndColorProfile(bool flag) { m_ignoreGammaAndColorPro file = flag; } |
300 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorP rofile; } | 307 bool ignoresGammaAndColorProfile() const { return m_ignoreGammaAndColorP rofile; } |
301 | 308 |
302 ImageOrientation orientation() const { return m_orientation; } | 309 ImageOrientation orientation() const { return m_orientation; } |
303 | 310 |
304 enum { iccColorProfileHeaderLength = 128 }; | 311 enum { iccColorProfileHeaderLength = 128 }; |
305 | 312 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
421 IntSize m_size; | 428 IntSize m_size; |
422 bool m_sizeAvailable; | 429 bool m_sizeAvailable; |
423 int m_maxNumPixels; | 430 int m_maxNumPixels; |
424 bool m_isAllDataReceived; | 431 bool m_isAllDataReceived; |
425 bool m_failed; | 432 bool m_failed; |
426 }; | 433 }; |
427 | 434 |
428 } // namespace WebCore | 435 } // namespace WebCore |
429 | 436 |
430 #endif | 437 #endif |
OLD | NEW |