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

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

Issue 2555103004: ImageResource: remove unnecessary vector copying during iteration. (Closed)
Patch Set: add comment Created 4 years 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.cpp ('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/ImageResourceObserver.h
diff --git a/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h b/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h
index b1f5da8ede5cd434f9605d313c5444ec8011b99d..e70f18c712c341627a9fa83a95f4b0f4a2782f1e 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h
+++ b/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h
@@ -51,11 +51,17 @@ class CORE_EXPORT ImageResourceObserver {
// example would not render the image, but LayoutImages would (assuming they
// have visibility: visible and their layout tree isn't hidden e.g., in the
// b/f cache or in a background tab).
+ //
+ // An implementation of this method is not allowed to add or remove
+ // ImageResource observers.
virtual bool willRenderImage() { return false; }
- // Called to get imageAnimation policy from settings
+ // Called to get imageAnimation policy from settings. An implementation of
+ // this method is not allowed to add or remove ImageResource observers.
virtual bool getImageAnimationPolicy(ImageAnimationPolicy&) { return false; }
+ // Return the observer's requested resource priority. An implementation of
+ // this method is not allowed to add or remove ImageResource observers.
virtual ResourcePriority computeResourcePriority() const {
return ResourcePriority();
}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698