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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Google Inc. All rights reserved. 3 * Copyright (C) 2014 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // the LCD text hit, we may be able to switch to the compositor 241 // the LCD text hit, we may be able to switch to the compositor
242 // driven path if we're alread composited for other reasons and are 242 // driven path if we're alread composited for other reasons and are
243 // therefore using grayscale AA. 243 // therefore using grayscale AA.
244 // 244 //
245 // FIXME: it should also be possible to promote if the layer can 245 // FIXME: it should also be possible to promote if the layer can
246 // still use LCD text when promoted, but detecting when the 246 // still use LCD text when promoted, but detecting when the
247 // compositor can do this is tricky. Currently, the layer must be 247 // compositor can do this is tricky. Currently, the layer must be
248 // both opaque and may only have an integer translation as its 248 // both opaque and may only have an integer translation as its
249 // transform. Both opacity and screen space transform are inherited 249 // transform. Both opacity and screen space transform are inherited
250 // properties, so this cannot be determined from local information. 250 // properties, so this cannot be determined from local information.
251 layer->scrollableArea()->updateNeedsCompositedScrolling(PaintLayerSc rollableArea::IgnoreLCDText); 251 layer->getScrollableArea()->updateNeedsCompositedScrolling(PaintLaye rScrollableArea::IgnoreLCDText);
252 if (layer->needsCompositedScrolling()) 252 if (layer->needsCompositedScrolling())
253 reasonsToComposite |= CompositingReasonOverflowScrollingTouch; 253 reasonsToComposite |= CompositingReasonOverflowScrollingTouch;
254 } 254 }
255 } 255 }
256 256
257 if ((reasonsToComposite & CompositingReasonOverflowScrollingTouch) && !layer ->isRootLayer()) 257 if ((reasonsToComposite & CompositingReasonOverflowScrollingTouch) && !layer ->isRootLayer())
258 currentRecursionData.m_hasCompositedScrollingAncestor = true; 258 currentRecursionData.m_hasCompositedScrollingAncestor = true;
259 259
260 // Next, accumulate reasons related to overlap. 260 // Next, accumulate reasons related to overlap.
261 // If overlap testing is used, this reason will be overridden. If overlap te sting is not 261 // If overlap testing is used, this reason will be overridden. If overlap te sting is not
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 overlapMap.finishCurrentOverlapTestingContext(); 448 overlapMap.finishCurrentOverlapTestingContext();
449 449
450 descendantHas3DTransform |= anyDescendantHas3DTransform || layer->has3DT ransform(); 450 descendantHas3DTransform |= anyDescendantHas3DTransform || layer->has3DT ransform();
451 } 451 }
452 452
453 // At this point we have finished collecting all reasons to composite this l ayer. 453 // At this point we have finished collecting all reasons to composite this l ayer.
454 layer->setCompositingReasons(reasonsToComposite); 454 layer->setCompositingReasons(reasonsToComposite);
455 } 455 }
456 456
457 } // namespace blink 457 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698