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 void setData(SharedBuffer& data, bool allDataReceived); | 73 bool setData(SharedBuffer& data, bool allDataReceived); |
pdr.
2016/07/20 20:39:16
It's not clear to me at the callsites that false m
Nate Chapin
2016/07/20 22:50:00
Done.
| |
74 String filenameExtension() const; | 74 String filenameExtension() const; |
75 | 75 |
76 bool isSizeAvailable(); | 76 bool isSizeAvailable(); |
77 bool hasColorProfile() const; | 77 bool hasColorProfile() const; |
78 IntSize size(RespectImageOrientationEnum = DoNotRespectImageOrientation) con st; | 78 IntSize size(RespectImageOrientationEnum = DoNotRespectImageOrientation) con st; |
79 IntSize frameSizeAtIndex(size_t, RespectImageOrientationEnum = DoNotRespectI mageOrientation) const; | 79 IntSize frameSizeAtIndex(size_t, RespectImageOrientationEnum = DoNotRespectI mageOrientation) const; |
80 | 80 |
81 bool getHotSpot(IntPoint&) const; | 81 bool getHotSpot(IntPoint&) const; |
82 int repetitionCount(); | 82 int repetitionCount(); |
83 | 83 |
(...skipping 11 matching lines...) Expand all Loading... | |
95 // frame has not yet begun to decode. | 95 // frame has not yet begun to decode. |
96 size_t frameBytesAtIndex(size_t) const; | 96 size_t frameBytesAtIndex(size_t) const; |
97 | 97 |
98 private: | 98 private: |
99 std::unique_ptr<DeferredImageDecoder> m_decoder; | 99 std::unique_ptr<DeferredImageDecoder> m_decoder; |
100 }; | 100 }; |
101 | 101 |
102 } // namespace blink | 102 } // namespace blink |
103 | 103 |
104 #endif | 104 #endif |
OLD | NEW |