| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 IntSize FrameSizeAtIndex( | 84 IntSize FrameSizeAtIndex( |
| 85 size_t, | 85 size_t, |
| 86 RespectImageOrientationEnum = kDoNotRespectImageOrientation) const; | 86 RespectImageOrientationEnum = kDoNotRespectImageOrientation) const; |
| 87 | 87 |
| 88 bool GetHotSpot(IntPoint&) const; | 88 bool GetHotSpot(IntPoint&) const; |
| 89 int RepetitionCount(); | 89 int RepetitionCount(); |
| 90 | 90 |
| 91 size_t FrameCount() const; | 91 size_t FrameCount() const; |
| 92 | 92 |
| 93 // Attempts to create the requested frame. | 93 // Attempts to create the requested frame. |
| 94 sk_sp<SkImage> CreateFrameAtIndex(size_t, const ColorBehavior&); | 94 sk_sp<SkImage> CreateFrameAtIndex(size_t); |
| 95 | 95 |
| 96 float FrameDurationAtIndex(size_t) const; | 96 float FrameDurationAtIndex(size_t) const; |
| 97 bool FrameHasAlphaAtIndex( | 97 bool FrameHasAlphaAtIndex( |
| 98 size_t) const; // Whether or not the frame actually used any alpha. | 98 size_t) const; // Whether or not the frame actually used any alpha. |
| 99 bool FrameIsCompleteAtIndex( | 99 bool FrameIsCompleteAtIndex( |
| 100 size_t) const; // Whether or not the frame is fully received. | 100 size_t) const; // Whether or not the frame is fully received. |
| 101 ImageOrientation OrientationAtIndex(size_t) const; // EXIF image orientation | 101 ImageOrientation OrientationAtIndex(size_t) const; // EXIF image orientation |
| 102 | 102 |
| 103 // Returns the number of bytes in the decoded frame. May return 0 if the | 103 // Returns the number of bytes in the decoded frame. May return 0 if the |
| 104 // frame has not yet begun to decode. | 104 // frame has not yet begun to decode. |
| 105 size_t FrameBytesAtIndex(size_t) const; | 105 size_t FrameBytesAtIndex(size_t) const; |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 std::unique_ptr<DeferredImageDecoder> decoder_; | 108 std::unique_ptr<DeferredImageDecoder> decoder_; |
| 109 ColorBehavior decoder_color_behavior_; | |
| 110 bool all_data_received_ = false; | 109 bool all_data_received_ = false; |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 } // namespace blink | 112 } // namespace blink |
| 114 | 113 |
| 115 #endif | 114 #endif |
| OLD | NEW |