| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 ImageDecoder::AlphaOption, ImageDecoder::GammaAndColorProfileOption); | 52 ImageDecoder::AlphaOption, ImageDecoder::GammaAndColorProfileOption); |
| 53 | 53 |
| 54 static std::unique_ptr<DeferredImageDecoder> createForTesting(std::unique_pt
r<ImageDecoder>); | 54 static std::unique_ptr<DeferredImageDecoder> createForTesting(std::unique_pt
r<ImageDecoder>); |
| 55 | 55 |
| 56 ~DeferredImageDecoder(); | 56 ~DeferredImageDecoder(); |
| 57 | 57 |
| 58 String filenameExtension() const; | 58 String filenameExtension() const; |
| 59 | 59 |
| 60 sk_sp<SkImage> createFrameAtIndex(size_t); | 60 sk_sp<SkImage> createFrameAtIndex(size_t); |
| 61 | 61 |
| 62 bool clear(); |
| 63 bool isBufferCleared() const { return m_isBufferCleared; } |
| 62 PassRefPtr<SharedBuffer> data(); | 64 PassRefPtr<SharedBuffer> data(); |
| 63 void setData(PassRefPtr<SharedBuffer> data, bool allDataReceived); | 65 void setData(PassRefPtr<SharedBuffer> data, bool allDataReceived); |
| 64 | 66 |
| 65 bool isSizeAvailable(); | 67 bool isSizeAvailable(); |
| 66 bool hasColorProfile() const; | 68 bool hasColorProfile() const; |
| 67 IntSize size() const; | 69 IntSize size() const; |
| 68 IntSize frameSizeAtIndex(size_t index) const; | 70 IntSize frameSizeAtIndex(size_t index) const; |
| 69 size_t frameCount(); | 71 size_t frameCount(); |
| 70 int repetitionCount() const; | 72 int repetitionCount() const; |
| 71 size_t clearCacheExceptFrame(size_t index); | 73 size_t clearCacheExceptFrame(size_t index); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 99 IntSize m_size; | 101 IntSize m_size; |
| 100 int m_repetitionCount; | 102 int m_repetitionCount; |
| 101 bool m_hasColorProfile; | 103 bool m_hasColorProfile; |
| 102 bool m_canYUVDecode; | 104 bool m_canYUVDecode; |
| 103 bool m_hasHotSpot; | 105 bool m_hasHotSpot; |
| 104 IntPoint m_hotSpot; | 106 IntPoint m_hotSpot; |
| 105 | 107 |
| 106 // Caches frame state information. | 108 // Caches frame state information. |
| 107 Vector<DeferredFrameData> m_frameData; | 109 Vector<DeferredFrameData> m_frameData; |
| 108 RefPtr<ImageFrameGenerator> m_frameGenerator; | 110 RefPtr<ImageFrameGenerator> m_frameGenerator; |
| 111 bool m_isBufferCleared; |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 } // namespace blink | 114 } // namespace blink |
| 112 | 115 |
| 113 #endif | 116 #endif |
| OLD | NEW |