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