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

Unified Diff: third_party/WebKit/Source/core/fetch/ImageResource.cpp

Issue 1454373005: Update comments regarding image caching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments only Created 5 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.cpp b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
index 54b5b9b3c37832e5aba061365362ced1709161fe..93853b0271992d367300e8e9b9334bc069ff02a5 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -451,8 +451,9 @@ bool ImageResource::currentFrameKnownToBeOpaque(const LayoutObject* layoutObject
blink::Image* image = this->image();
if (image->isBitmapImage()) {
TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "PaintImage", "data", InspectorPaintImageEvent::data(layoutObject, *this));
- // BitmapImage::currentFrameKnownToBeOpaque() conservatively returns true for uncached
- // frames. To get an accurate answer, we pre-cache the current frame metadata.
+ // BitmapImage::currentFrameKnownToBeOpaque() conservatively returns false for uncached
+ // frames. To increase the change of an accurate answer, we pre-cache the current frame
+ // metadata.
image->imageForCurrentFrame();
}
return image->currentFrameKnownToBeOpaque();
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698