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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 660133005: Widen GPU trigger condition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git/+/master
Patch Set: add unit test Created 6 years, 2 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') | no next file with comments »
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 d545e9f50f213cd7e0a3be3d5786e3d189963ab1..2e367f903a6205f59aad9c7eb6e9475a86587aa7 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3252,8 +3252,8 @@ void WebViewImpl::updatePageDefinedViewportConstraints(const ViewportDescription
Document* document = page()->deprecatedLocalMainFrame()->document();
m_matchesHeuristicsForGpuRasterization = description.maxWidth == Length(DeviceWidth)
- && description.minZoom == 1.0
- && description.minZoomIsExplicit;
+ && ((description.minZoom >= 1.0 && description.minZoomIsExplicit)
+ || !description.userZoom);
if (m_layerTreeView)
m_layerTreeView->heuristicsForGpuRasterizationUpdated(m_matchesHeuristicsForGpuRasterization);
« no previous file with comments | « no previous file | Source/web/tests/ViewportTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698