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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2727223002: Round the subpixel accumulation used for composited scrolling content (Closed)
Patch Set: Merge and remove subpixel adjustment for transformed fragments. Created 3 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/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index 2d2167ead07fe3179ddd06a2d1ff2c1169700c52..703c09dd1b3d1a86de11a49d82b1266ca8a88c90 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -3046,10 +3046,18 @@ void CompositedLayerMapping::DoPaintTask(
if (paint_info.paint_layer->GetCompositingState() !=
kPaintsIntoGroupedBacking) {
+ LayoutSize sub_pixel_accumulation =
+ paint_info.paint_layer->SubpixelAccumulation();
+ if (paint_layer_flags & kPaintLayerPaintingCompositingScrollingPhase) {
+ // The composited scrolling contents layer position rounds the subpixel
+ // accumulation.
+ sub_pixel_accumulation =
chrishtr 2017/05/05 01:14:09 This will round off the subpixel accumulation for
flackr 2017/05/05 17:02:19 The composited scrolling content geometry size doe
+ LayoutSize(RoundedIntSize(sub_pixel_accumulation));
+ }
// FIXME: GraphicsLayers need a way to split for multicol.
PaintLayerPaintingInfo painting_info(
paint_info.paint_layer, LayoutRect(dirty_rect), kGlobalPaintNormalPhase,
- paint_info.paint_layer->SubpixelAccumulation());
+ sub_pixel_accumulation);
PaintLayerPainter(*paint_info.paint_layer)
.PaintLayerContents(context, painting_info, paint_layer_flags);
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698