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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 static PassOwnPtr<DeferredImageDecoder> create(const SharedBuffer& data, Ima
geDecoder::AlphaOption, ImageDecoder::GammaAndColorProfileOption); | 50 static PassOwnPtr<DeferredImageDecoder> create(const SharedBuffer& data, Ima
geDecoder::AlphaOption, ImageDecoder::GammaAndColorProfileOption); |
51 | 51 |
52 static PassOwnPtr<DeferredImageDecoder> createForTesting(PassOwnPtr<ImageDec
oder>); | 52 static PassOwnPtr<DeferredImageDecoder> createForTesting(PassOwnPtr<ImageDec
oder>); |
53 | 53 |
54 ~DeferredImageDecoder(); | 54 ~DeferredImageDecoder(); |
55 | 55 |
56 String filenameExtension() const; | 56 String filenameExtension() const; |
57 | 57 |
58 PassRefPtr<SkImage> createFrameAtIndex(size_t); | 58 PassRefPtr<SkImage> createFrameAtIndex(size_t); |
59 | 59 |
| 60 bool hasData() const; |
| 61 PassRefPtr<SharedBuffer> data(); |
60 void setData(SharedBuffer& data, bool allDataReceived); | 62 void setData(SharedBuffer& data, bool allDataReceived); |
61 | 63 |
62 bool isSizeAvailable(); | 64 bool isSizeAvailable(); |
63 bool hasColorProfile() const; | 65 bool hasColorProfile() const; |
64 IntSize size() const; | 66 IntSize size() const; |
65 IntSize frameSizeAtIndex(size_t index) const; | 67 IntSize frameSizeAtIndex(size_t index) const; |
66 size_t frameCount(); | 68 size_t frameCount(); |
67 int repetitionCount() const; | 69 int repetitionCount() const; |
68 size_t clearCacheExceptFrame(size_t index); | 70 size_t clearCacheExceptFrame(size_t index); |
69 bool frameHasAlphaAtIndex(size_t index) const; | 71 bool frameHasAlphaAtIndex(size_t index) const; |
(...skipping 27 matching lines...) Expand all Loading... |
97 bool m_canYUVDecode; | 99 bool m_canYUVDecode; |
98 | 100 |
99 // Caches frame state information. | 101 // Caches frame state information. |
100 Vector<DeferredFrameData> m_frameData; | 102 Vector<DeferredFrameData> m_frameData; |
101 RefPtr<ImageFrameGenerator> m_frameGenerator; | 103 RefPtr<ImageFrameGenerator> m_frameGenerator; |
102 }; | 104 }; |
103 | 105 |
104 } // namespace blink | 106 } // namespace blink |
105 | 107 |
106 #endif | 108 #endif |
OLD | NEW |