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

Unified Diff: Source/core/rendering/RenderLayerCompositor.cpp

Issue 101623002: Drop "only composite opacity animations when already in compositing mode". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Seperate window.internals and window.testRunner Created 7 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
« no previous file with comments | « Source/core/frame/animation/AnimationControllerPrivate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/RenderLayerCompositor.cpp b/Source/core/rendering/RenderLayerCompositor.cpp
index d87e1b8bcaacbd86a8d0dd599a90358c6c5dcec4..111830a1a4487ba53f45464aac2a1f8cafc17180 100644
--- a/Source/core/rendering/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/RenderLayerCompositor.cpp
@@ -1686,13 +1686,10 @@ bool RenderLayerCompositor::requiresCompositingForAnimation(RenderObject* render
if (!(m_compositingTriggers & ChromeClient::AnimationTrigger))
return false;
- if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled()) {
- // FIXME: Remove this condition once force-compositing-mode is enabled on all platforms.
- bool shouldAccelerateOpacity = inCompositingMode();
- return renderer->animation().isRunningAcceleratableAnimationOnRenderer(renderer, shouldAccelerateOpacity);
- }
+ if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled())
+ return renderer->animation().isRunningAcceleratableAnimationOnRenderer(renderer);
- return shouldCompositeForActiveAnimations(*renderer, inCompositingMode());
+ return shouldCompositeForActiveAnimations(*renderer);
}
bool RenderLayerCompositor::requiresCompositingForTransition(RenderObject* renderer) const
« no previous file with comments | « Source/core/frame/animation/AnimationControllerPrivate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698