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

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

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 | « no previous file | third_party/WebKit/Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/ImageResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.h b/third_party/WebKit/Source/core/fetch/ImageResource.h
index 43eeabf34b94c428a1504b569be43dc684c485ac..786f07b261fcd96960ec52f84e7991ae088a1d3f 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.h
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.h
@@ -60,8 +60,6 @@ public:
blink::Image* image(); // Returns the nullImage() if the image is not available yet.
bool hasImage() const { return m_image.get(); }
// Side effect: ensures decoded image is in cache, therefore should only be called when about to draw the image.
- // FIXME: Decoding image on the main thread is expensive, so rather than forcing decode, consider returning false
- // when image is not decoded yet, as we do in case of deferred decoding.
bool currentFrameKnownToBeOpaque(const LayoutObject*);
static std::pair<blink::Image*, float> brokenImage(float deviceScaleFactor); // Returns an image and the image's resolution scale factor.
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698