Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index 94ab8cc45b04f89c0276867bc1c142168416aa00..1eaf4093c12cdd9934e075053efc2db619f8fad0 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 (settingsImpl()->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); |