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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.h

Issue 1438663002: Avoid calling imageForCurrentFrame on SVGImage when not necessary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: third_party/WebKit/Source/platform/graphics/Image.h
diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h
index fc9eb8d1048aca708253efccdfdd335d32d224e9..88f4301946a7dc06bdc09832143673a92afcc1fe 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.h
+++ b/third_party/WebKit/Source/platform/graphics/Image.h
@@ -73,6 +73,7 @@ public:
virtual bool currentFrameKnownToBeOpaque() = 0;
virtual bool currentFrameIsComplete() { return false; }
virtual bool currentFrameIsLazyDecoded() { return false; }
+ virtual bool isTextureBacked();
// Derived classes should override this if they can assure that the current
// image frame contains only resources from its own security origin.

Powered by Google App Engine
This is Rietveld 408576698