OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void setData(SharedBuffer& data, bool allDataReceived); | 60 void setData(SharedBuffer& data, bool allDataReceived); |
61 | 61 |
62 bool isSizeAvailable(); | 62 bool isSizeAvailable(); |
63 bool hasColorProfile() const; | 63 bool hasColorProfile() const; |
64 IntSize size() const; | 64 IntSize size() const; |
65 IntSize frameSizeAtIndex(size_t index) const; | 65 IntSize frameSizeAtIndex(size_t index) const; |
66 size_t frameCount(); | 66 size_t frameCount(); |
67 int repetitionCount() const; | 67 int repetitionCount() const; |
68 size_t clearCacheExceptFrame(size_t index); | 68 size_t clearCacheExceptFrame(size_t index); |
69 bool frameHasAlphaAtIndex(size_t index) const; | 69 bool frameHasAlphaAtIndex(size_t index) const; |
70 bool frameIsCompleteAtIndex(size_t index) const; | 70 bool frameIsFullyReceivedAtIndex(size_t index) const; |
71 float frameDurationAtIndex(size_t index) const; | 71 float frameDurationAtIndex(size_t index) const; |
72 size_t frameBytesAtIndex(size_t index) const; | 72 size_t frameBytesAtIndex(size_t index) const; |
73 ImageOrientation orientationAtIndex(size_t index) const; | 73 ImageOrientation orientationAtIndex(size_t index) const; |
74 bool hotSpot(IntPoint&) const; | 74 bool hotSpot(IntPoint&) const; |
75 | 75 |
76 private: | 76 private: |
77 explicit DeferredImageDecoder(PassOwnPtr<ImageDecoder> actualDecoder); | 77 explicit DeferredImageDecoder(PassOwnPtr<ImageDecoder> actualDecoder); |
78 | 78 |
79 friend class DeferredImageDecoderTest; | 79 friend class DeferredImageDecoderTest; |
80 ImageFrameGenerator* frameGenerator() { return m_frameGenerator.get(); } | 80 ImageFrameGenerator* frameGenerator() { return m_frameGenerator.get(); } |
(...skipping 16 matching lines...) Expand all Loading... |
97 bool m_canYUVDecode; | 97 bool m_canYUVDecode; |
98 | 98 |
99 // Caches frame state information. | 99 // Caches frame state information. |
100 Vector<DeferredFrameData> m_frameData; | 100 Vector<DeferredFrameData> m_frameData; |
101 RefPtr<ImageFrameGenerator> m_frameGenerator; | 101 RefPtr<ImageFrameGenerator> m_frameGenerator; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace blink | 104 } // namespace blink |
105 | 105 |
106 #endif | 106 #endif |
OLD | NEW |