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 dbce5b06b65f7e4ff4ef9e4783670e765bcfada8..a8478fea83d7f6327e9149e2a1fbdea372480d36 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::FixedRasterScale_BlurryContent); |
+ if (hasPotentialPerformanceRegression) |
+ UseCounter::count(document, UseCounter::FixedRasterScale_PotentialPerformanceRegression); |
+} |
+ |
// WebView -------------------------------------------------------------------- |
WebSettingsImpl* WebViewImpl::settingsImpl() |