OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, 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 // from the beginning. | 63 // from the beginning. |
64 // | 64 // |
65 // Implementations may elect to preserve more frames than the one requested | 65 // Implementations may elect to preserve more frames than the one requested |
66 // here if doing so is likely to save CPU time in the future, but will pay | 66 // here if doing so is likely to save CPU time in the future, but will pay |
67 // an increased memory cost to do so. | 67 // an increased memory cost to do so. |
68 // | 68 // |
69 // Returns the number of bytes of frame data actually cleared. | 69 // Returns the number of bytes of frame data actually cleared. |
70 size_t clearCacheExceptFrame(size_t); | 70 size_t clearCacheExceptFrame(size_t); |
71 | 71 |
72 PassRefPtr<SharedBuffer> data(); | 72 PassRefPtr<SharedBuffer> data(); |
73 ImageDecoder::SniffResult setData(SharedBuffer& data, bool allDataReceived); | 73 // Returns false when the decoder layer rejects the data. |
| 74 bool setData(PassRefPtr<SharedBuffer> data, bool allDataReceived); |
74 String filenameExtension() const; | 75 String filenameExtension() const; |
75 | 76 |
76 bool isSizeAvailable(); | 77 bool isSizeAvailable(); |
77 bool hasColorProfile() const; | 78 bool hasColorProfile() const; |
78 IntSize size(RespectImageOrientationEnum = DoNotRespectImageOrientation) con
st; | 79 IntSize size(RespectImageOrientationEnum = DoNotRespectImageOrientation) con
st; |
79 IntSize frameSizeAtIndex(size_t, RespectImageOrientationEnum = DoNotRespectI
mageOrientation) const; | 80 IntSize frameSizeAtIndex(size_t, RespectImageOrientationEnum = DoNotRespectI
mageOrientation) const; |
80 | 81 |
81 bool getHotSpot(IntPoint&) const; | 82 bool getHotSpot(IntPoint&) const; |
82 int repetitionCount(); | 83 int repetitionCount(); |
83 | 84 |
(...skipping 11 matching lines...) Expand all Loading... |
95 // frame has not yet begun to decode. | 96 // frame has not yet begun to decode. |
96 size_t frameBytesAtIndex(size_t) const; | 97 size_t frameBytesAtIndex(size_t) const; |
97 | 98 |
98 private: | 99 private: |
99 std::unique_ptr<DeferredImageDecoder> m_decoder; | 100 std::unique_ptr<DeferredImageDecoder> m_decoder; |
100 }; | 101 }; |
101 | 102 |
102 } // namespace blink | 103 } // namespace blink |
103 | 104 |
104 #endif | 105 #endif |
OLD | NEW |