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

Unified Diff: Source/core/rendering/RenderLayer.cpp

Issue 19579003: Use high resolution markers when device scale factor > 1.5f (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add composited testcase Created 7 years, 5 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: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index dcb8112eeaa0b9120b9f5efdfedf6fe352224a9a..8c9eaaef0e2af304f291e0d0bae50a5e43182224 100644
--- a/Source/core/rendering/RenderLayer.cpp
+++ b/Source/core/rendering/RenderLayer.cpp
@@ -3618,6 +3618,9 @@ void RenderLayer::paintLayerContents(GraphicsContext* context, const LayerPainti
|| (!isPaintingScrollingContent && isPaintingCompositedForeground));
bool shouldPaintContent = m_hasVisibleContent && isSelfPaintingLayer && !isPaintingOverlayScrollbars;
+ float deviceScaleFactor = WebCore::deviceScaleFactor(renderer()->frame());
+ context->setUseHighResMarkers(deviceScaleFactor > 1.5f);
+
GraphicsContext* transparencyLayerContext = context;
if (localPaintFlags & PaintLayerPaintingRootBackgroundOnly && !renderer()->isRenderView() && !renderer()->isRoot())

Powered by Google App Engine
This is Rietveld 408576698