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 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1569 CompositingReasons RenderLayerCompositor::directReasonsForCompositing(const Rend erLayer* layer) const | 1569 CompositingReasons RenderLayerCompositor::directReasonsForCompositing(const Rend erLayer* layer) const |
1570 { | 1570 { |
1571 RenderObject* renderer = layer->renderer(); | 1571 RenderObject* renderer = layer->renderer(); |
1572 CompositingReasons directReasons = CompositingReasonNone; | 1572 CompositingReasons directReasons = CompositingReasonNone; |
1573 | 1573 |
1574 if (requiresCompositingForTransform(renderer)) | 1574 if (requiresCompositingForTransform(renderer)) |
1575 directReasons |= CompositingReason3DTransform; | 1575 directReasons |= CompositingReason3DTransform; |
1576 | 1576 |
1577 if (requiresCompositingForVideo(renderer)) | 1577 if (requiresCompositingForVideo(renderer)) |
1578 directReasons |= CompositingReasonVideo; | 1578 directReasons |= CompositingReasonVideo; |
1579 | 1579 else if (requiresCompositingForCanvas(renderer)) |
shawnsingh
2013/07/01 06:23:28
Let's add a brief comment at the beginning of this
pals
2013/07/01 07:41:57
Done.
| |
1580 if (requiresCompositingForCanvas(renderer)) | |
1581 directReasons |= CompositingReasonCanvas; | 1580 directReasons |= CompositingReasonCanvas; |
1582 | 1581 else if (requiresCompositingForPlugin(renderer)) |
1583 if (requiresCompositingForPlugin(renderer)) | |
1584 directReasons |= CompositingReasonPlugin; | 1582 directReasons |= CompositingReasonPlugin; |
1585 | 1583 else if (requiresCompositingForFrame(renderer)) |
1586 if (requiresCompositingForFrame(renderer)) | |
1587 directReasons |= CompositingReasonIFrame; | 1584 directReasons |= CompositingReasonIFrame; |
1588 | 1585 |
1589 if (requiresCompositingForBackfaceVisibilityHidden(renderer)) | 1586 if (requiresCompositingForBackfaceVisibilityHidden(renderer)) |
1590 directReasons |= CompositingReasonBackfaceVisibilityHidden; | 1587 directReasons |= CompositingReasonBackfaceVisibilityHidden; |
1591 | 1588 |
1592 if (requiresCompositingForAnimation(renderer)) | 1589 if (requiresCompositingForTransition(renderer) || requiresCompositingForAnim ation(renderer)) |
shawnsingh
2013/07/01 06:23:28
This particular line, let's not combine these. We
pals
2013/07/01 07:41:57
Done.
| |
1593 directReasons |= CompositingReasonAnimation; | |
1594 | |
1595 if (requiresCompositingForTransition(renderer)) | |
1596 directReasons |= CompositingReasonAnimation; | 1590 directReasons |= CompositingReasonAnimation; |
1597 | 1591 |
1598 if (requiresCompositingForFilters(renderer)) | 1592 if (requiresCompositingForFilters(renderer)) |
1599 directReasons |= CompositingReasonFilters; | 1593 directReasons |= CompositingReasonFilters; |
1600 | 1594 |
1601 if (requiresCompositingForPosition(renderer, layer)) | 1595 if (requiresCompositingForPosition(renderer, layer)) |
1602 directReasons |= renderer->style()->position() == FixedPosition ? Compos itingReasonPositionFixed : CompositingReasonPositionSticky; | 1596 directReasons |= renderer->style()->position() == FixedPosition ? Compos itingReasonPositionFixed : CompositingReasonPositionSticky; |
1603 | 1597 |
1604 if (requiresCompositingForOverflowScrolling(layer)) | 1598 if (requiresCompositingForOverflowScrolling(layer)) |
1605 directReasons |= CompositingReasonOverflowScrollingTouch; | 1599 directReasons |= CompositingReasonOverflowScrollingTouch; |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2752 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); | 2746 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); |
2753 #if ENABLE(RUBBER_BANDING) | 2747 #if ENABLE(RUBBER_BANDING) |
2754 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); | 2748 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); |
2755 info.addMember(m_contentShadowLayer, "contentShadowLayer"); | 2749 info.addMember(m_contentShadowLayer, "contentShadowLayer"); |
2756 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); | 2750 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); |
2757 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); | 2751 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); |
2758 #endif | 2752 #endif |
2759 } | 2753 } |
2760 | 2754 |
2761 } // namespace WebCore | 2755 } // namespace WebCore |
OLD | NEW |