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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 309593007: Expand GPU rasterization trigger for Finch experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/web/tests/ViewportTest.cpp » ('j') | public/web/WebViewClient.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 94ab8cc45b04f89c0276867bc1c142168416aa00..91cc70fbc292525e9d05b61743b1f00ee9d860e0 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -2883,13 +2883,19 @@ void WebViewImpl::updatePageDefinedViewportConstraints(const ViewportDescription
Document* document = page()->mainFrame()->document();
- m_matchesHeuristicsForGpuRasterization = description.maxWidth == Length(DeviceWidth)
- && description.minZoom == 1.0
- && description.minZoomIsExplicit
- && description.zoom == 1.0
- && description.zoomIsExplicit
- && description.userZoom
- && description.userZoomIsExplicit;
+ if (m_client && m_client->useExpandedHeuristicsForGpuRasterization()) {
+ m_matchesHeuristicsForGpuRasterization = description.maxWidth == Length(DeviceWidth)
+ && description.minZoom == 1.0
+ && description.minZoomIsExplicit;
+ } else {
+ m_matchesHeuristicsForGpuRasterization = description.maxWidth == Length(DeviceWidth)
+ && description.minZoom == 1.0
+ && description.minZoomIsExplicit
+ && description.zoom == 1.0
+ && description.zoomIsExplicit
+ && description.userZoom
+ && description.userZoomIsExplicit;
+ }
if (m_layerTreeView)
m_layerTreeView->heuristicsForGpuRasterizationUpdated(m_matchesHeuristicsForGpuRasterization);
« no previous file with comments | « no previous file | Source/web/tests/ViewportTest.cpp » ('j') | public/web/WebViewClient.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698