Changeset 246471 in webkit
- Timestamp:
- Jun 15, 2019, 10:33:28 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 9 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/compositing/overflow/stacking-context-composited-scroller-with-foreground-paint-phases-expected.txt (modified) (5 diffs)
-
LayoutTests/platform/gtk/compositing/overflow/composited-scrolling-paint-phases-expected.txt (modified) (9 diffs)
-
LayoutTests/platform/ios-wk2/compositing/overflow/stacking-context-composited-scroller-with-foreground-paint-phases-expected.txt (modified) (5 diffs)
-
LayoutTests/platform/mac-wk1/compositing/overflow/stacking-context-composited-scroller-with-foreground-paint-phases-expected.txt (modified) (5 diffs)
-
LayoutTests/platform/mac/compositing/overflow/composited-scrolling-paint-phases-expected.txt (deleted)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/graphics/GraphicsLayer.cpp (modified) (3 diffs)
-
Source/WebCore/platform/graphics/GraphicsLayer.h (modified) (1 diff)
-
Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r246466 r246471 1 2019-06-15 Simon Fraser <simon.fraser@apple.com> 2 3 Make layerTreeAsText() output a bit less verbose 4 https://bugs.webkit.org/show_bug.cgi?id=198870 5 6 Reviewed by Tim Horton. 7 8 * compositing/overflow/stacking-context-composited-scroller-with-foreground-paint-phases-expected.txt: 9 * platform/gtk/compositing/overflow/composited-scrolling-paint-phases-expected.txt: 10 * platform/ios-wk2/compositing/overflow/stacking-context-composited-scroller-with-foreground-paint-phases-expected.txt: 11 * platform/mac-wk1/compositing/overflow/stacking-context-composited-scroller-with-foreground-paint-phases-expected.txt: 12 * platform/mac/compositing/overflow/composited-scrolling-paint-phases-expected.txt: Removed. 13 1 14 2019-06-15 Rob Buis <rbuis@igalia.com> 2 15 -
trunk/LayoutTests/compositing/overflow/stacking-context-composited-scroller-with-foreground-paint-phases-expected.txt
r246019 r246471 3 3 (anchor 0.00 0.00) 4 4 (bounds 800.00 600.00) 5 (paintingPhases 6 GraphicsLayerPaintBackground 7 GraphicsLayerPaintForeground 8 ) 5 (paintingPhases [background, foreground]) 9 6 (children 1 10 7 (GraphicsLayer 11 8 (bounds 800.00 600.00) 12 9 (contentsOpaque 1) 13 (paintingPhases 14 GraphicsLayerPaintBackground 15 GraphicsLayerPaintForeground 16 ) 10 (paintingPhases [background, foreground]) 17 11 (children 1 18 12 (GraphicsLayer … … 20 14 (bounds 322.00 322.00) 21 15 (drawsContent 1) 22 (paintingPhases 23 GraphicsLayerPaintBackground 24 GraphicsLayerPaintCompositedScroll 25 ) 16 (paintingPhases [background, composited-scroll]) 26 17 (children 1 27 18 (GraphicsLayer … … 35 26 (bounds 305.00 1020.00) 36 27 (drawsContent 1) 37 (paintingPhases 38 GraphicsLayerPaintOverflowContents 39 GraphicsLayerPaintCompositedScroll 40 ) 28 (paintingPhases [overflow-contents, composited-scroll]) 41 29 (children 2 42 30 (GraphicsLayer … … 44 32 (bounds 100.00 100.00) 45 33 (contentsOpaque 1) 46 (paintingPhases 47 GraphicsLayerPaintBackground 48 GraphicsLayerPaintForeground 49 ) 34 (paintingPhases [background, foreground]) 50 35 ) 51 36 (GraphicsLayer … … 53 38 (bounds 305.00 1020.00) 54 39 (drawsContent 1) 55 (paintingPhases 56 GraphicsLayerPaintForeground 57 GraphicsLayerPaintOverflowContents 58 ) 40 (paintingPhases [foreground, overflow-contents]) 59 41 ) 60 42 ) -
trunk/LayoutTests/platform/gtk/compositing/overflow/composited-scrolling-paint-phases-expected.txt
r225897 r246471 2 2 (anchor 0.00 0.00) 3 3 (bounds 800.00 600.00) 4 (paintingPhases 5 GraphicsLayerPaintBackground 6 GraphicsLayerPaintForeground 7 ) 4 (paintingPhases [background, foreground]) 8 5 (children 1 9 6 (GraphicsLayer 10 7 (bounds 800.00 600.00) 11 8 (contentsOpaque 1) 12 (paintingPhases 13 GraphicsLayerPaintBackground 14 GraphicsLayerPaintForeground 15 ) 9 (paintingPhases [background, foreground]) 16 10 (children 1 17 11 (GraphicsLayer … … 19 13 (bounds 202.00 202.00) 20 14 (drawsContent 1) 21 (paintingPhases 22 GraphicsLayerPaintBackground 23 GraphicsLayerPaintCompositedScroll 24 ) 15 (paintingPhases [background, foreground]) 25 16 (children 4 26 17 (GraphicsLayer … … 28 19 (position 1.00 1.00) 29 20 (bounds 185.00 185.00) 30 (paintingPhases 31 GraphicsLayerPaintBackground 32 GraphicsLayerPaintForeground 33 ) 21 (paintingPhases [background, foreground]) 34 22 (children 1 35 23 (GraphicsLayer … … 37 25 (bounds 185.00 715.00) 38 26 (drawsContent 1) 39 (paintingPhases 40 GraphicsLayerPaintOverflowContents 41 GraphicsLayerPaintCompositedScroll 42 ) 27 (paintingPhases [overflow-contents, composited-scroll]) 43 28 (children 2 44 29 (GraphicsLayer … … 46 31 (bounds 80.00 10.00) 47 32 (contentsOpaque 1) 48 (paintingPhases 49 GraphicsLayerPaintBackground 50 GraphicsLayerPaintForeground 51 ) 33 (paintingPhases [background, foreground]) 52 34 ) 53 35 (GraphicsLayer … … 55 37 (bounds 185.00 715.00) 56 38 (drawsContent 1) 57 (paintingPhases 58 GraphicsLayerPaintForeground 59 ) 39 (paintingPhases [foreground]) 60 40 ) 61 41 ) … … 67 47 (bounds 185.00 15.00) 68 48 (drawsContent 1) 69 (paintingPhases 70 GraphicsLayerPaintBackground 71 GraphicsLayerPaintForeground 72 ) 49 (paintingPhases [background, foreground]) 73 50 ) 74 51 (GraphicsLayer … … 76 53 (bounds 15.00 185.00) 77 54 (drawsContent 1) 78 (paintingPhases 79 GraphicsLayerPaintBackground 80 GraphicsLayerPaintForeground 81 ) 55 (paintingPhases [background, foreground]) 82 56 ) 83 57 (GraphicsLayer … … 85 59 (bounds 15.00 15.00) 86 60 (drawsContent 1) 87 (paintingPhases 88 GraphicsLayerPaintBackground 89 GraphicsLayerPaintForeground 90 ) 61 (paintingPhases [background, foreground]) 91 62 ) 92 63 ) -
trunk/LayoutTests/platform/ios-wk2/compositing/overflow/stacking-context-composited-scroller-with-foreground-paint-phases-expected.txt
r246019 r246471 3 3 (anchor 0.00 0.00) 4 4 (bounds 800.00 600.00) 5 (paintingPhases 6 GraphicsLayerPaintBackground 7 GraphicsLayerPaintForeground 8 ) 5 (paintingPhases [background, foreground]) 9 6 (children 1 10 7 (GraphicsLayer 11 8 (bounds 800.00 600.00) 12 9 (contentsOpaque 1) 13 (paintingPhases 14 GraphicsLayerPaintBackground 15 GraphicsLayerPaintForeground 16 ) 10 (paintingPhases [background, foreground]) 17 11 (children 1 18 12 (GraphicsLayer … … 20 14 (bounds 322.00 322.00) 21 15 (drawsContent 1) 22 (paintingPhases 23 GraphicsLayerPaintBackground 24 GraphicsLayerPaintCompositedScroll 25 ) 16 (paintingPhases [background, composited-scroll]) 26 17 (children 1 27 18 (GraphicsLayer … … 35 26 (bounds 320.00 1020.00) 36 27 (drawsContent 1) 37 (paintingPhases 38 GraphicsLayerPaintOverflowContents 39 GraphicsLayerPaintCompositedScroll 40 ) 28 (paintingPhases [overflow-contents, composited-scroll]) 41 29 (children 2 42 30 (GraphicsLayer … … 44 32 (bounds 100.00 100.00) 45 33 (contentsOpaque 1) 46 (paintingPhases 47 GraphicsLayerPaintBackground 48 GraphicsLayerPaintForeground 49 ) 34 (paintingPhases [background, foreground]) 50 35 ) 51 36 (GraphicsLayer … … 53 38 (bounds 320.00 1020.00) 54 39 (drawsContent 1) 55 (paintingPhases 56 GraphicsLayerPaintForeground 57 GraphicsLayerPaintOverflowContents 58 ) 40 (paintingPhases [foreground, overflow-contents]) 59 41 ) 60 42 ) -
trunk/LayoutTests/platform/mac-wk1/compositing/overflow/stacking-context-composited-scroller-with-foreground-paint-phases-expected.txt
r246017 r246471 3 3 (anchor 0.00 0.00) 4 4 (bounds 800.00 600.00) 5 (paintingPhases 6 GraphicsLayerPaintBackground 7 GraphicsLayerPaintForeground 8 ) 5 (paintingPhases [background, foreground]) 9 6 (children 1 10 7 (GraphicsLayer 11 8 (bounds 800.00 600.00) 12 9 (contentsOpaque 1) 13 (paintingPhases 14 GraphicsLayerPaintBackground 15 GraphicsLayerPaintForeground 16 ) 10 (paintingPhases [background, foreground]) 17 11 (children 1 18 12 (GraphicsLayer … … 20 14 (bounds 322.00 322.00) 21 15 (drawsContent 1) 22 (paintingPhases 23 GraphicsLayerPaintBackground 24 ) 16 (paintingPhases [background]) 25 17 (children 1 26 18 (GraphicsLayer … … 28 20 (position 1.00 1.00) 29 21 (bounds 305.00 305.00) 30 (paintingPhases 31 GraphicsLayerPaintBackground 32 GraphicsLayerPaintForeground 33 ) 22 (paintingPhases [background, foreground]) 34 23 (children 2 35 24 (GraphicsLayer … … 37 26 (bounds 100.00 100.00) 38 27 (contentsOpaque 1) 39 (paintingPhases 40 GraphicsLayerPaintBackground 41 GraphicsLayerPaintForeground 42 ) 28 (paintingPhases [background, foreground]) 43 29 ) 44 30 (GraphicsLayer … … 46 32 (bounds 305.00 305.00) 47 33 (drawsContent 1) 48 (paintingPhases 49 GraphicsLayerPaintForeground 50 ) 34 (paintingPhases [foreground]) 51 35 ) 52 36 ) -
trunk/Source/WebCore/ChangeLog
r246470 r246471 1 2019-06-15 Simon Fraser <simon.fraser@apple.com> 2 3 Make layerTreeAsText() output a bit less verbose 4 https://bugs.webkit.org/show_bug.cgi?id=198870 5 6 Reviewed by Tim Horton. 7 8 "accelerates drawing" was getting dumped twice for debug dumps. 9 Only dump the non-default state for "uses display-list drawing". 10 Use the new OptionSet<> dumping for GraphicsLayerPaintingPhases. 11 12 * platform/graphics/GraphicsLayer.cpp: 13 (WebCore::GraphicsLayer::dumpProperties const): 14 (WebCore::operator<<): 15 * platform/graphics/GraphicsLayer.h: 16 * platform/graphics/ca/GraphicsLayerCA.cpp: 17 (WebCore::GraphicsLayerCA::createTransformAnimationsFromKeyframes): 18 1 19 2019-06-15 Youenn Fablet <youenn@apple.com> 2 20 -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp
r245977 r246471 919 919 ts << indent << "(backfaceVisibility " << (m_backfaceVisibility ? "visible" : "hidden") << ")\n"; 920 920 921 if (behavior & LayerTreeAsTextDebug) {921 if (behavior & LayerTreeAsTextDebug) 922 922 ts << indent << "(primary-layer-id " << primaryLayerID() << ")\n"; 923 ts << indent << "(client " << static_cast<void*>(m_client) << ")\n";924 }925 923 926 924 if (m_backgroundColor.isValid() && client().shouldDumpPropertyForLayer(this, "backgroundColor", behavior)) … … 1000 998 } 1001 999 1002 if (behavior & LayerTreeAsTextIncludePaintingPhases && paintingPhase()) { 1003 ts << indent << "(paintingPhases\n"; 1004 TextStream::IndentScope indentScope(ts); 1005 if (paintingPhase().contains(GraphicsLayerPaintingPhase::Background)) 1006 ts << indent << "GraphicsLayerPaintBackground\n"; 1007 1008 if (paintingPhase().contains(GraphicsLayerPaintingPhase::Foreground)) 1009 ts << indent << "GraphicsLayerPaintForeground\n"; 1010 1011 if (paintingPhase().contains(GraphicsLayerPaintingPhase::Mask)) 1012 ts << indent << "GraphicsLayerPaintMask\n"; 1013 1014 if (paintingPhase().contains(GraphicsLayerPaintingPhase::ChildClippingMask)) 1015 ts << indent << "GraphicsLayerPaintChildClippingMask\n"; 1016 1017 if (paintingPhase().contains(GraphicsLayerPaintingPhase::OverflowContents)) 1018 ts << indent << "GraphicsLayerPaintOverflowContents\n"; 1019 1020 if (paintingPhase().contains(GraphicsLayerPaintingPhase::CompositedScroll)) 1021 ts << indent << "GraphicsLayerPaintCompositedScroll\n"; 1022 1023 ts << indent << ")\n"; 1024 } 1000 if (behavior & LayerTreeAsTextIncludePaintingPhases && paintingPhase()) 1001 ts << indent << "(paintingPhases " << paintingPhase() << ")\n"; 1025 1002 1026 1003 dumpAdditionalProperties(ts, behavior); … … 1052 1029 } 1053 1030 1054 TextStream& operator<<(TextStream& ts, const WebCore::GraphicsLayer::CustomAppearance& customAppearance) 1031 TextStream& operator<<(TextStream& ts, GraphicsLayerPaintingPhase phase) 1032 { 1033 switch (phase) { 1034 case GraphicsLayerPaintingPhase::Background: ts << "background"; break; 1035 case GraphicsLayerPaintingPhase::Foreground: ts << "foreground"; break; 1036 case GraphicsLayerPaintingPhase::Mask: ts << "mask"; break; 1037 case GraphicsLayerPaintingPhase::ClipPath: ts << "clip-path"; break; 1038 case GraphicsLayerPaintingPhase::OverflowContents: ts << "overflow-contents"; break; 1039 case GraphicsLayerPaintingPhase::CompositedScroll: ts << "composited-scroll"; break; 1040 case GraphicsLayerPaintingPhase::ChildClippingMask: ts << "child-clipping-mask"; break; 1041 } 1042 1043 return ts; 1044 } 1045 1046 TextStream& operator<<(TextStream& ts, const GraphicsLayer::CustomAppearance& customAppearance) 1055 1047 { 1056 1048 switch (customAppearance) { -
trunk/Source/WebCore/platform/graphics/GraphicsLayer.h
r245977 r246471 742 742 }; 743 743 744 WEBCORE_EXPORT WTF::TextStream& operator<<(WTF::TextStream&, const WebCore::GraphicsLayerPaintingPhase); 744 745 WEBCORE_EXPORT WTF::TextStream& operator<<(WTF::TextStream&, const Vector<GraphicsLayer::PlatformLayerID>&); 745 746 WEBCORE_EXPORT WTF::TextStream& operator<<(WTF::TextStream&, const GraphicsLayer::CustomAppearance&); -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r246018 r246471 3727 3727 textStream << indent << "(in window " << tiledBacking()->isInWindow() << ")\n"; 3728 3728 } 3729 3729 3730 3730 if (m_layer->wantsDeepColorBackingStore()) 3731 3731 textStream << indent << "(deep color 1)\n"; 3732 3733 3732 3734 3733 if (behavior & LayerTreeAsTextIncludeContentLayers) { … … 3743 3742 3744 3743 if (behavior & LayerTreeAsTextDebug) { 3745 textStream << indent << "(accelerates drawing " << m_acceleratesDrawing << ")\n";3746 textStream << indent << "(uses display-list drawing " << m_usesDisplayListDrawing << ")\n";3744 if (m_usesDisplayListDrawing) 3745 textStream << indent << "(uses display-list drawing " << m_usesDisplayListDrawing << ")\n"; 3747 3746 } 3748 3747 }
Note:
See TracChangeset
for help on using the changeset viewer.