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

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

Issue 2259493004: Fix Compositing of Opaque Scrolling Layers and Add Tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 4 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/CompositingRequirementsUpdater.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
index 8ae2819e6a25525fb5c6aeba17bda724df869e7d..45fb553060e862cda2b80123bb61e2ba2348e329 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
@@ -238,16 +238,10 @@ void CompositingRequirementsUpdater::updateRecursive(PaintLayer* ancestorLayer,
if (reasonsToComposite && layer->scrollsOverflow() && !layer->needsCompositedScrolling()) {
// We will only set needsCompositedScrolling if we don't care about
- // the LCD text hit, we may be able to switch to the compositor
+ // the LCD text hit, or when the background supports painting LCD text.
+ // We may be able to switch to the compositor
// driven path if we're alread composited for other reasons and are
// therefore using grayscale AA.
- //
- // FIXME: it should also be possible to promote if the layer can
- // still use LCD text when promoted, but detecting when the
- // compositor can do this is tricky. Currently, the layer must be
- // both opaque and may only have an integer translation as its
chrishtr 2016/09/02 01:19:38 Are you checking for integer translation?
Stephen Chennney 2016/09/06 21:06:21 I could DCHECK for it. I believe we force integer
chrishtr 2016/09/06 22:17:59 The sum of the translations from the root must be
Stephen Chennney 2016/09/07 19:57:54 This comment on an earlier review explains why we
- // transform. Both opacity and screen space transform are inherited
- // properties, so this cannot be determined from local information.
layer->getScrollableArea()->updateNeedsCompositedScrolling(PaintLayerScrollableArea::IgnoreLCDText);
if (layer->needsCompositedScrolling())
reasonsToComposite |= CompositingReasonOverflowScrollingTouch;

Powered by Google App Engine
This is Rietveld 408576698