| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |