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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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/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()

Powered by Google App Engine
This is Rietveld 408576698