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

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

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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.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/platform/graphics/Image.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp
index 64d706b5fa2d3c836a6bcfccdd559fb7dae7c9f7..2214f5b3c41df078ed9c1744751d162c543a48da 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -274,4 +274,9 @@ PassRefPtr<Image> Image::imageForDefaultFrame()
return image.release();
}
+bool Image::isTextureBacked()
+{
+ return imageForCurrentFrame()->isTextureBacked();
pdr. 2015/11/11 06:19:45 SVGImage::imageForCurrentFrame actually draws a ne
Justin Novosad 2015/11/11 15:19:45 This will never get called on an SVGImage (which i
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698