Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ImageSource.h

Issue 2982083002: FrameIsCompleteAtIndex to FrameIsReceivedAtIndex (Closed)
Patch Set: Update upstack from ImageDecoder Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 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 FrameIsReceivedAtIndex(
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 bool all_data_received_ = false; 109 bool all_data_received_ = false;
110 }; 110 };
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 #endif 114 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698