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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.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/png/PNGImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
index 0e12da8491b7094abc87fe1dd4647a97b07fd634..44ee333ebd34b0c0b1633e22846de4e814e78ff4 100644
--- a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
@@ -468,17 +468,16 @@ void PNGImageDecoder::FrameComplete() {
buffer.SetStatus(ImageFrame::kFrameComplete);
}
-bool PNGImageDecoder::FrameIsCompleteAtIndex(size_t index) const {
+bool PNGImageDecoder::FrameIsReceivedAtIndex(size_t index) const {
if (!IsDecodedSizeAvailable())
return false;
DCHECK(!Failed() && reader_);
- // For non-animated images, return whether the status of the frame is
- // ImageFrame::FrameComplete with ImageDecoder::FrameIsCompleteAtIndex.
+ // For non-animated images, return ImageDecoder::FrameIsReceivedAtIndex.
// This matches the behavior of WEBPImageDecoder.
if (reader_->ParseCompleted() && reader_->FrameCount() == 1)
- return ImageDecoder::FrameIsCompleteAtIndex(index);
+ return ImageDecoder::FrameIsReceivedAtIndex(index);
return reader_->FrameIsReceivedAtIndex(index);
}

Powered by Google App Engine
This is Rietveld 408576698