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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 bool isSizeAvailable(); | 64 bool isSizeAvailable(); |
65 bool hasColorProfile() const; | 65 bool hasColorProfile() const; |
66 IntSize size() const; | 66 IntSize size() const; |
67 IntSize frameSizeAtIndex(size_t index) const; | 67 IntSize frameSizeAtIndex(size_t index) const; |
68 size_t frameCount(); | 68 size_t frameCount(); |
69 int repetitionCount() const; | 69 int repetitionCount() const; |
70 size_t clearCacheExceptFrame(size_t); | 70 size_t clearCacheExceptFrame(size_t); |
71 bool frameHasAlphaAtIndex(size_t index) const; | 71 bool frameHasAlphaAtIndex(size_t index) const; |
72 bool frameIsCompleteAtIndex(size_t) const; | 72 bool frameIsCompleteAtIndex(size_t) const; |
73 bool frameIsCachedAndLazyDecodedAtIndex(size_t) const; | |
74 float frameDurationAtIndex(size_t) const; | 73 float frameDurationAtIndex(size_t) const; |
75 size_t frameBytesAtIndex(size_t index) const; | 74 size_t frameBytesAtIndex(size_t index) const; |
76 ImageOrientation orientationAtIndex(size_t index) const; | 75 ImageOrientation orientationAtIndex(size_t index) const; |
77 bool hotSpot(IntPoint&) const; | 76 bool hotSpot(IntPoint&) const; |
78 | 77 |
79 // For testing. | 78 // For testing. |
80 ImageFrameGenerator* frameGenerator() { return m_frameGenerator.get(); } | 79 ImageFrameGenerator* frameGenerator() { return m_frameGenerator.get(); } |
81 | 80 |
82 private: | 81 private: |
83 explicit DeferredImageDecoder(PassOwnPtr<ImageDecoder> actualDecoder); | 82 explicit DeferredImageDecoder(PassOwnPtr<ImageDecoder> actualDecoder); |
(...skipping 15 matching lines...) Expand all Loading... |
99 // Carries only frame state and other information. Does not carry bitmap. | 98 // Carries only frame state and other information. Does not carry bitmap. |
100 Vector<FrameData> m_frameData; | 99 Vector<FrameData> m_frameData; |
101 RefPtr<ImageFrameGenerator> m_frameGenerator; | 100 RefPtr<ImageFrameGenerator> m_frameGenerator; |
102 | 101 |
103 static bool s_enabled; | 102 static bool s_enabled; |
104 }; | 103 }; |
105 | 104 |
106 } // namespace blink | 105 } // namespace blink |
107 | 106 |
108 #endif | 107 #endif |
OLD | NEW |