OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 if (m_hasScrollParent) { | 718 if (m_hasScrollParent) { |
719 writeIndent(ts, indent + 1); | 719 writeIndent(ts, indent + 1); |
720 ts << "(hasScrollParent 1)\n"; | 720 ts << "(hasScrollParent 1)\n"; |
721 } | 721 } |
722 if (m_hasClipParent) { | 722 if (m_hasClipParent) { |
723 writeIndent(ts, indent + 1); | 723 writeIndent(ts, indent + 1); |
724 ts << "(hasClipParent 1)\n"; | 724 ts << "(hasClipParent 1)\n"; |
725 } | 725 } |
726 } | 726 } |
727 | 727 |
| 728 if (flags & LayerTreeIncludesDebugInfo) { |
| 729 writeIndent(ts, indent + 1); |
| 730 ts << "(compositingReasons\n"; |
| 731 for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonStringMap); ++i
) { |
| 732 if (m_debugInfo.compositingReasons() & compositingReasonStringMap[i]
.reason) { |
| 733 writeIndent(ts, indent + 2); |
| 734 ts << compositingReasonStringMap[i].description << "\n"; |
| 735 } |
| 736 } |
| 737 writeIndent(ts, indent + 1); |
| 738 ts << ")\n"; |
| 739 } |
| 740 |
728 if (m_children.size()) { | 741 if (m_children.size()) { |
729 writeIndent(ts, indent + 1); | 742 writeIndent(ts, indent + 1); |
730 ts << "(children " << m_children.size() << "\n"; | 743 ts << "(children " << m_children.size() << "\n"; |
731 | 744 |
732 unsigned i; | 745 unsigned i; |
733 for (i = 0; i < m_children.size(); i++) | 746 for (i = 0; i < m_children.size(); i++) |
734 m_children[i]->dumpLayer(ts, indent + 2, flags, renderingContextMap)
; | 747 m_children[i]->dumpLayer(ts, indent + 2, flags, renderingContextMap)
; |
735 writeIndent(ts, indent + 1); | 748 writeIndent(ts, indent + 1); |
736 ts << ")\n"; | 749 ts << ")\n"; |
737 } | 750 } |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 #ifndef NDEBUG | 1237 #ifndef NDEBUG |
1225 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) | 1238 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) |
1226 { | 1239 { |
1227 if (!layer) | 1240 if (!layer) |
1228 return; | 1241 return; |
1229 | 1242 |
1230 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); | 1243 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); |
1231 fprintf(stderr, "%s\n", output.utf8().data()); | 1244 fprintf(stderr, "%s\n", output.utf8().data()); |
1232 } | 1245 } |
1233 #endif | 1246 #endif |
OLD | NEW |