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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageElement.cpp

Issue 2557783002: Improve metrics for display list canvas fallback reason (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/core/html/HTMLImageElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
index 01fc2ac62b9849ede2e4d98b0d73447fdedc8672..a55126b93e5214f3c30b6d667b8ffbdd839459bc 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.cpp
@@ -867,8 +867,7 @@ int HTMLImageElement::sourceWidth() {
SourceImageStatus status;
FloatSize defaultObjectSize(width(), height());
RefPtr<Image> image = getSourceImageForCanvas(
- &status, PreferNoAcceleration, SnapshotReasonCopyToWebGLTexture,
- defaultObjectSize);
+ &status, PreferNoAcceleration, SnapshotReasonUnknown, defaultObjectSize);
return image->width();
}
@@ -876,8 +875,7 @@ int HTMLImageElement::sourceHeight() {
SourceImageStatus status;
FloatSize defaultObjectSize(width(), height());
RefPtr<Image> image = getSourceImageForCanvas(
- &status, PreferNoAcceleration, SnapshotReasonCopyToWebGLTexture,
- defaultObjectSize);
+ &status, PreferNoAcceleration, SnapshotReasonUnknown, defaultObjectSize);
return image->height();
}

Powered by Google App Engine
This is Rietveld 408576698