| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 int repetitionCount(); | 80 int repetitionCount(); |
| 81 | 81 |
| 82 size_t frameCount() const; | 82 size_t frameCount() const; |
| 83 | 83 |
| 84 // Attempts to create the requested frame. | 84 // Attempts to create the requested frame. |
| 85 PassRefPtr<SkImage> createFrameAtIndex(size_t); | 85 PassRefPtr<SkImage> createFrameAtIndex(size_t); |
| 86 | 86 |
| 87 float frameDurationAtIndex(size_t) const; | 87 float frameDurationAtIndex(size_t) const; |
| 88 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall
y used any alpha. | 88 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall
y used any alpha. |
| 89 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu
lly received. | 89 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu
lly received. |
| 90 bool frameIsLazyDecodedAtIndex(size_t) const; // Whether or not the frame is
lazy-decoded. | |
| 91 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation | 90 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation |
| 92 | 91 |
| 93 // Returns the number of bytes in the decoded frame. May return 0 if the | 92 // Returns the number of bytes in the decoded frame. May return 0 if the |
| 94 // frame has not yet begun to decode. | 93 // frame has not yet begun to decode. |
| 95 size_t frameBytesAtIndex(size_t) const; | 94 size_t frameBytesAtIndex(size_t) const; |
| 96 | 95 |
| 97 private: | 96 private: |
| 98 OwnPtr<DeferredImageDecoder> m_decoder; | 97 OwnPtr<DeferredImageDecoder> m_decoder; |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } // namespace blink | 100 } // namespace blink |
| 102 | 101 |
| 103 #endif | 102 #endif |
| OLD | NEW |