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

Unified Diff: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp

Issue 1299323005: blink: Add backdrop-filter support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: one more Created 5 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: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
diff --git a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
index 3a2c3683122e2867aee88aab8fefe3fec6ada5e3..7bc4b0c27634e34bf035b508c65abc28445db1db 100644
--- a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
+++ b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
@@ -227,6 +227,7 @@ void CompositedDeprecatedPaintLayerMapping::createPrimaryGraphicsLayer()
updateOpacity(layoutObject()->styleRef());
updateTransform(layoutObject()->styleRef());
updateFilters(layoutObject()->styleRef());
+ updateBackdropFilters(layoutObject()->styleRef());
if (RuntimeEnabledFeatures::cssCompositingEnabled()) {
updateLayerBlendMode(layoutObject()->styleRef());
@@ -276,6 +277,11 @@ void CompositedDeprecatedPaintLayerMapping::updateFilters(const ComputedStyle& s
m_graphicsLayer->setFilters(owningLayer().computeFilterOperations(style));
}
+void CompositedDeprecatedPaintLayerMapping::updateBackdropFilters(const ComputedStyle& style)
+{
+ m_graphicsLayer->setBackdropFilters(owningLayer().computeBackdropFilterOperations(style));
+}
+
void CompositedDeprecatedPaintLayerMapping::updateLayerBlendMode(const ComputedStyle& style)
{
setBlendMode(style.blendMode());
@@ -660,6 +666,9 @@ void CompositedDeprecatedPaintLayerMapping::updateGraphicsLayerGeometry(const De
if (!layoutObject()->style()->isRunningFilterAnimationOnCompositor())
updateFilters(layoutObject()->styleRef());
+ if (!layoutObject()->style()->isRunningBackdropFilterAnimationOnCompositor())
+ updateBackdropFilters(layoutObject()->styleRef());
+
// We compute everything relative to the enclosing compositing layer.
IntRect ancestorCompositingBounds;
if (compositingContainer) {

Powered by Google App Engine
This is Rietveld 408576698