OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 virtual int RepetitionCount() const { return kAnimationNone; } | 186 virtual int RepetitionCount() const { return kAnimationNone; } |
187 | 187 |
188 // Decodes as much of the requested frame as possible, and returns an | 188 // Decodes as much of the requested frame as possible, and returns an |
189 // ImageDecoder-owned pointer. | 189 // ImageDecoder-owned pointer. |
190 ImageFrame* FrameBufferAtIndex(size_t); | 190 ImageFrame* FrameBufferAtIndex(size_t); |
191 | 191 |
192 // Whether the requested frame has alpha. | 192 // Whether the requested frame has alpha. |
193 virtual bool FrameHasAlphaAtIndex(size_t) const; | 193 virtual bool FrameHasAlphaAtIndex(size_t) const; |
194 | 194 |
195 // Whether or not the frame is fully received. | 195 // Whether or not the frame is fully received. |
196 virtual bool FrameIsCompleteAtIndex(size_t) const; | 196 virtual bool FrameIsReceivedAtIndex(size_t) const; |
197 | 197 |
198 // Returns true if a cached complete decode is available. | 198 // Returns true if a cached complete decode is available. |
199 bool FrameIsDecodedAtIndex(size_t) const; | 199 bool FrameIsDecodedAtIndex(size_t) const; |
200 | 200 |
201 // Duration for displaying a frame in milliseconds. This method is only used | 201 // Duration for displaying a frame in milliseconds. This method is only used |
202 // by animated images. | 202 // by animated images. |
203 virtual float FrameDurationAtIndex(size_t) const { return 0; } | 203 virtual float FrameDurationAtIndex(size_t) const { return 0; } |
204 | 204 |
205 // Number of bytes in the decoded frame. Returns 0 if the decoder doesn't | 205 // Number of bytes in the decoded frame. Returns 0 if the decoder doesn't |
206 // have this frame cached (either because it hasn't been decoded, or because | 206 // have this frame cached (either because it hasn't been decoded, or because |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 bool has_histogrammed_color_space_ = false; | 427 bool has_histogrammed_color_space_ = false; |
428 | 428 |
429 sk_sp<SkColorSpace> embedded_color_space_ = nullptr; | 429 sk_sp<SkColorSpace> embedded_color_space_ = nullptr; |
430 bool source_to_target_color_transform_needs_update_ = false; | 430 bool source_to_target_color_transform_needs_update_ = false; |
431 std::unique_ptr<SkColorSpaceXform> source_to_target_color_transform_; | 431 std::unique_ptr<SkColorSpaceXform> source_to_target_color_transform_; |
432 }; | 432 }; |
433 | 433 |
434 } // namespace blink | 434 } // namespace blink |
435 | 435 |
436 #endif | 436 #endif |
OLD | NEW |