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...) Loading... |
80 bool getHotSpot(IntPoint&) const; | 80 bool getHotSpot(IntPoint&) const; |
81 int repetitionCount(); | 81 int repetitionCount(); |
82 | 82 |
83 size_t frameCount() const; | 83 size_t frameCount() const; |
84 | 84 |
85 // Attempts to create the requested frame. | 85 // Attempts to create the requested frame. |
86 PassRefPtr<SkImage> createFrameAtIndex(size_t); | 86 PassRefPtr<SkImage> createFrameAtIndex(size_t); |
87 | 87 |
88 float frameDurationAtIndex(size_t) const; | 88 float frameDurationAtIndex(size_t) const; |
89 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall
y used any alpha. | 89 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall
y used any alpha. |
90 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu
lly received. | 90 bool frameIsFullyReceivedAtIndex(size_t) const; // Whether or not the frame
is fully received. |
91 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation | 91 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation |
92 | 92 |
93 // Returns the number of bytes in the decoded frame. May return 0 if the | 93 // Returns the number of bytes in the decoded frame. May return 0 if the |
94 // frame has not yet begun to decode. | 94 // frame has not yet begun to decode. |
95 size_t frameBytesAtIndex(size_t) const; | 95 size_t frameBytesAtIndex(size_t) const; |
96 | 96 |
97 private: | 97 private: |
98 OwnPtr<DeferredImageDecoder> m_decoder; | 98 OwnPtr<DeferredImageDecoder> m_decoder; |
99 }; | 99 }; |
100 | 100 |
101 } // namespace blink | 101 } // namespace blink |
102 | 102 |
103 #endif | 103 #endif |
OLD | NEW |