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

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

Issue 2596623002: Create compositor animations for effect animations in SPv2. (Closed)
Patch Set: Sync to head and add node removal test. Created 4 years 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/CompositingReasonFinder.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
index 9587807e9e6e8c90989c9ba6d3b857e07911299e..f285365d6d63eb8a7e526df90789e78222389ec5 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositingReasonFinder.cpp
@@ -178,6 +178,19 @@ bool CompositingReasonFinder::requiresCompositingForAnimation(
return style.shouldCompositeForCurrentAnimations();
}
+bool CompositingReasonFinder::requiresCompositingForEffectAnimation(
+ const ComputedStyle& style) {
+ if (style.subtreeWillChangeContents()) {
+ return style.isRunningOpacityAnimationOnCompositor() ||
+ style.isRunningFilterAnimationOnCompositor() ||
+ style.isRunningBackdropFilterAnimationOnCompositor();
+ }
+
+ return style.hasCurrentOpacityAnimation() ||
+ style.hasCurrentFilterAnimation() ||
+ style.hasCurrentBackdropFilterAnimation();
+}
+
bool CompositingReasonFinder::requiresCompositingForTransformAnimation(
const ComputedStyle& style) {
return style.subtreeWillChangeContents()

Powered by Google App Engine
This is Rietveld 408576698