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

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

Issue 15181006: Plumb CompositingReason from Blink to compositor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed reviewer feedback, keeping the forwarding include Created 7 years, 7 months 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/rendering/RenderLayerBacking.cpp ('k') | public/platform/WebCompositingReasons.h » ('j') | 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 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 if (requiresCompositingForFrame(renderer)) 1564 if (requiresCompositingForFrame(renderer))
1565 directReasons |= CompositingReasonIFrame; 1565 directReasons |= CompositingReasonIFrame;
1566 1566
1567 if (requiresCompositingForBackfaceVisibilityHidden(renderer)) 1567 if (requiresCompositingForBackfaceVisibilityHidden(renderer))
1568 directReasons |= CompositingReasonBackfaceVisibilityHidden; 1568 directReasons |= CompositingReasonBackfaceVisibilityHidden;
1569 1569
1570 if (requiresCompositingForAnimation(renderer)) 1570 if (requiresCompositingForAnimation(renderer))
1571 directReasons |= CompositingReasonAnimation; 1571 directReasons |= CompositingReasonAnimation;
1572 1572
1573 if (requiresCompositingForTransition(renderer)) 1573 if (requiresCompositingForTransition(renderer))
1574 directReasons |= CompositingReasonTransition; 1574 directReasons |= CompositingReasonAnimation;
1575 1575
1576 if (requiresCompositingForFilters(renderer)) 1576 if (requiresCompositingForFilters(renderer))
1577 directReasons |= CompositingReasonFilters; 1577 directReasons |= CompositingReasonFilters;
1578 1578
1579 if (requiresCompositingForPosition(renderer, layer)) 1579 if (requiresCompositingForPosition(renderer, layer))
1580 directReasons |= renderer->style()->position() == FixedPosition ? Compos itingReasonPositionFixed : CompositingReasonPositionSticky; 1580 directReasons |= renderer->style()->position() == FixedPosition ? Compos itingReasonPositionFixed : CompositingReasonPositionSticky;
1581 1581
1582 if (requiresCompositingForOverflowScrolling(layer)) 1582 if (requiresCompositingForOverflowScrolling(layer))
1583 directReasons |= CompositingReasonOverflowScrollingTouch; 1583 directReasons |= CompositingReasonOverflowScrollingTouch;
1584 1584
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1620 1620
1621 if (reasons & CompositingReasonBackfaceVisibilityHidden) 1621 if (reasons & CompositingReasonBackfaceVisibilityHidden)
1622 return "backface-visibility: hidden"; 1622 return "backface-visibility: hidden";
1623 1623
1624 if (reasons & CompositingReasonClipsCompositingDescendants) 1624 if (reasons & CompositingReasonClipsCompositingDescendants)
1625 return "clips compositing descendants"; 1625 return "clips compositing descendants";
1626 1626
1627 if (reasons & CompositingReasonAnimation) 1627 if (reasons & CompositingReasonAnimation)
1628 return "animation"; 1628 return "animation";
1629 1629
1630 if (reasons & CompositingReasonTransition)
1631 return "transition";
1632
1633 if (reasons & CompositingReasonFilters) 1630 if (reasons & CompositingReasonFilters)
1634 return "filters"; 1631 return "filters";
1635 1632
1636 if (reasons & CompositingReasonPositionFixed) 1633 if (reasons & CompositingReasonPositionFixed)
1637 return "position: fixed"; 1634 return "position: fixed";
1638 1635
1639 if (reasons & CompositingReasonPositionSticky) 1636 if (reasons & CompositingReasonPositionSticky)
1640 return "position: sticky"; 1637 return "position: sticky";
1641 1638
1642 if (reasons & CompositingReasonOverflowScrollingTouch) 1639 if (reasons & CompositingReasonOverflowScrollingTouch)
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2744 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); 2741 info.addMember(m_layerForScrollCorner, "layerForScrollCorner");
2745 #if ENABLE(RUBBER_BANDING) 2742 #if ENABLE(RUBBER_BANDING)
2746 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); 2743 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas");
2747 info.addMember(m_contentShadowLayer, "contentShadowLayer"); 2744 info.addMember(m_contentShadowLayer, "contentShadowLayer");
2748 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); 2745 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea");
2749 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); 2746 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea");
2750 #endif 2747 #endif
2751 } 2748 }
2752 2749
2753 } // namespace WebCore 2750 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerBacking.cpp ('k') | public/platform/WebCompositingReasons.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698