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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
index 0b76d3326f24edabb38900dfff72e8440d417c42..5b0201a5d307363372e897d500d0b57fdc808024 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
@@ -150,11 +150,11 @@ ImageFrame* ImageDecoder::FrameBufferAtIndex(size_t index) {
}
bool ImageDecoder::FrameHasAlphaAtIndex(size_t index) const {
- return !FrameIsCompleteAtIndex(index) ||
+ return !FrameIsReceivedAtIndex(index) ||
frame_buffer_cache_[index].HasAlpha();
}
-bool ImageDecoder::FrameIsCompleteAtIndex(size_t index) const {
+bool ImageDecoder::FrameIsReceivedAtIndex(size_t index) const {
// Animated images override this method to return the status based on the data
// received for the queried frame.
return IsAllDataReceived();

Powered by Google App Engine
This is Rietveld 408576698