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

Side by Side Diff: Source/core/rendering/RenderLayerCompositor.cpp

Issue 63813004: Only composite opacity animations when already in compositing mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/animation/AnimationControllerPrivate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 1670
1671 bool RenderLayerCompositor::requiresCompositingForBackfaceVisibilityHidden(Rende rObject* renderer) const 1671 bool RenderLayerCompositor::requiresCompositingForBackfaceVisibilityHidden(Rende rObject* renderer) const
1672 { 1672 {
1673 return canRender3DTransforms() && renderer->style()->backfaceVisibility() == BackfaceVisibilityHidden; 1673 return canRender3DTransforms() && renderer->style()->backfaceVisibility() == BackfaceVisibilityHidden;
1674 } 1674 }
1675 1675
1676 bool RenderLayerCompositor::requiresCompositingForAnimation(RenderObject* render er) const 1676 bool RenderLayerCompositor::requiresCompositingForAnimation(RenderObject* render er) const
1677 { 1677 {
1678 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger)) 1678 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger))
1679 return false; 1679 return false;
1680 return renderer->animation().isRunningAcceleratableAnimationOnRenderer(rende rer); 1680
1681 // FIXME: Remove this condition once force-compositing-mode is enabled on al l platforms.
1682 bool shouldAccelerateOpacity = inCompositingMode();
1683 return renderer->animation().isRunningAcceleratableAnimationOnRenderer(rende rer, shouldAccelerateOpacity);
1681 } 1684 }
1682 1685
1683 bool RenderLayerCompositor::requiresCompositingForTransition(RenderObject* rende rer) const 1686 bool RenderLayerCompositor::requiresCompositingForTransition(RenderObject* rende rer) const
1684 { 1687 {
1685 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger)) 1688 if (!(m_compositingTriggers & ChromeClient::AnimationTrigger))
1686 return false; 1689 return false;
1687 1690
1688 if (Settings* settings = m_renderView->document().settings()) { 1691 if (Settings* settings = m_renderView->document().settings()) {
1689 if (!settings->acceleratedCompositingForTransitionEnabled()) 1692 if (!settings->acceleratedCompositingForTransitionEnabled())
1690 return false; 1693 return false;
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
2444 } else if (graphicsLayer == m_scrollLayer.get()) { 2447 } else if (graphicsLayer == m_scrollLayer.get()) {
2445 name = "Frame Scrolling Layer"; 2448 name = "Frame Scrolling Layer";
2446 } else { 2449 } else {
2447 ASSERT_NOT_REACHED(); 2450 ASSERT_NOT_REACHED();
2448 } 2451 }
2449 2452
2450 return name; 2453 return name;
2451 } 2454 }
2452 2455
2453 } // namespace WebCore 2456 } // namespace WebCore
OLDNEW
« 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