Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index 3422f11af0f4d3c0f441cb0314a142b345b403bd..e5e75f7ca8fd72734f079da3119fafaa949b3fb4 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -59,6 +59,7 @@ |
#include "core/frame/Settings.h" |
#include "core/frame/SmartClip.h" |
#include "core/frame/TopControls.h" |
+#include "core/frame/UseCounter.h" |
#include "core/frame/VisualViewport.h" |
#include "core/html/HTMLInputElement.h" |
#include "core/html/HTMLMediaElement.h" |
@@ -2802,6 +2803,17 @@ void WebViewImpl::didChangeWindowResizerRect() |
mainFrameImpl()->frameView()->windowResizerRectChanged(); |
} |
+void WebViewImpl::reportFixedRasterScaleUseCounters(bool hasBlurryContent, bool hasPotentialPerformanceRegression) |
+{ |
+ if (!mainFrameImpl() || !mainFrameImpl()->frame()->isLocalFrame()) |
+ return; |
+ Document* document = mainFrameImpl()->frame()->document(); |
+ if (hasBlurryContent) |
+ UseCounter::count(document, UseCounter::FixedRasterScaleBlurryContent); |
+ if (hasPotentialPerformanceRegression) |
+ UseCounter::count(document, UseCounter::FixedRasterScalePotentialPerformanceRegression); |
+} |
+ |
// WebView -------------------------------------------------------------------- |
WebSettingsImpl* WebViewImpl::settingsImpl() |