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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 * 7 *
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 29 matching lines...) Expand all
40 WTF_MAKE_NONCOPYABLE(WEBPImageDecoder); 40 WTF_MAKE_NONCOPYABLE(WEBPImageDecoder);
41 41
42 public: 42 public:
43 WEBPImageDecoder(AlphaOption, const ColorBehavior&, size_t max_decoded_bytes); 43 WEBPImageDecoder(AlphaOption, const ColorBehavior&, size_t max_decoded_bytes);
44 ~WEBPImageDecoder() override; 44 ~WEBPImageDecoder() override;
45 45
46 // ImageDecoder: 46 // ImageDecoder:
47 String FilenameExtension() const override { return "webp"; } 47 String FilenameExtension() const override { return "webp"; }
48 void OnSetData(SegmentReader* data) override; 48 void OnSetData(SegmentReader* data) override;
49 int RepetitionCount() const override; 49 int RepetitionCount() const override;
50 bool FrameIsCompleteAtIndex(size_t) const override; 50 bool FrameIsReceivedAtIndex(size_t) const override;
51 float FrameDurationAtIndex(size_t) const override; 51 float FrameDurationAtIndex(size_t) const override;
52 52
53 private: 53 private:
54 // ImageDecoder: 54 // ImageDecoder:
55 virtual void DecodeSize() { UpdateDemuxer(); } 55 virtual void DecodeSize() { UpdateDemuxer(); }
56 size_t DecodeFrameCount() override; 56 size_t DecodeFrameCount() override;
57 void InitializeNewFrame(size_t) override; 57 void InitializeNewFrame(size_t) override;
58 void Decode(size_t) override; 58 void Decode(size_t) override;
59 59
60 bool DecodeSingleFrame(const uint8_t* data_bytes, 60 bool DecodeSingleFrame(const uint8_t* data_bytes,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void ClearDecoder(); 106 void ClearDecoder();
107 107
108 // FIXME: Update libwebp's API so it does not require copying the data on each 108 // FIXME: Update libwebp's API so it does not require copying the data on each
109 // update. 109 // update.
110 sk_sp<SkData> consolidated_data_; 110 sk_sp<SkData> consolidated_data_;
111 }; 111 };
112 112
113 } // namespace blink 113 } // namespace blink
114 114
115 #endif 115 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698