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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // | 67 // |
68 // Implementations may elect to preserve more frames than the one requested | 68 // Implementations may elect to preserve more frames than the one requested |
69 // here if doing so is likely to save CPU time in the future, but will pay | 69 // here if doing so is likely to save CPU time in the future, but will pay |
70 // an increased memory cost to do so. | 70 // an increased memory cost to do so. |
71 // | 71 // |
72 // Returns the number of bytes of frame data actually cleared. | 72 // Returns the number of bytes of frame data actually cleared. |
73 size_t ClearCacheExceptFrame(size_t); | 73 size_t ClearCacheExceptFrame(size_t); |
74 | 74 |
75 PassRefPtr<SharedBuffer> Data(); | 75 PassRefPtr<SharedBuffer> Data(); |
76 // Returns false when the decoder layer rejects the data. | 76 // Returns false when the decoder layer rejects the data. |
77 bool SetData(PassRefPtr<SharedBuffer> data, bool all_data_received); | 77 bool SetData(RefPtr<SharedBuffer> data, bool all_data_received); |
78 String FilenameExtension() const; | 78 String FilenameExtension() const; |
79 | 79 |
80 bool IsSizeAvailable(); | 80 bool IsSizeAvailable(); |
81 bool HasColorProfile() const; | 81 bool HasColorProfile() const; |
82 IntSize size( | 82 IntSize size( |
83 RespectImageOrientationEnum = kDoNotRespectImageOrientation) const; | 83 RespectImageOrientationEnum = kDoNotRespectImageOrientation) const; |
84 IntSize FrameSizeAtIndex( | 84 IntSize FrameSizeAtIndex( |
85 size_t, | 85 size_t, |
86 RespectImageOrientationEnum = kDoNotRespectImageOrientation) const; | 86 RespectImageOrientationEnum = kDoNotRespectImageOrientation) const; |
87 | 87 |
(...skipping 18 matching lines...) Expand all Loading... |
106 | 106 |
107 private: | 107 private: |
108 std::unique_ptr<DeferredImageDecoder> decoder_; | 108 std::unique_ptr<DeferredImageDecoder> decoder_; |
109 ColorBehavior decoder_color_behavior_; | 109 ColorBehavior decoder_color_behavior_; |
110 bool all_data_received_ = false; | 110 bool all_data_received_ = false; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
114 | 114 |
115 #endif | 115 #endif |
OLD | NEW |