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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { | 792 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { |
793 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); | 793 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); |
794 if (m_paintingPhase & GraphicsLayerPaintBackground) | 794 if (m_paintingPhase & GraphicsLayerPaintBackground) |
795 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); | 795 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); |
796 if (m_paintingPhase & GraphicsLayerPaintForeground) | 796 if (m_paintingPhase & GraphicsLayerPaintForeground) |
797 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); | 797 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); |
798 if (m_paintingPhase & GraphicsLayerPaintMask) | 798 if (m_paintingPhase & GraphicsLayerPaintMask) |
799 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); | 799 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); |
800 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) | 800 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) |
801 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"
); | 801 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"
); |
| 802 if (m_paintingPhase & GraphicsLayerPaintAncestorClippingMask) |
| 803 paintingPhasesJSON->pushString("GraphicsLayerPaintAncestorClippingMa
sk"); |
802 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) | 804 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) |
803 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents")
; | 805 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents")
; |
804 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) | 806 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) |
805 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll")
; | 807 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll")
; |
806 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); | 808 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); |
807 } | 809 } |
808 | 810 |
809 if (flags & LayerTreeIncludesClipAndScrollParents) { | 811 if (flags & LayerTreeIncludesClipAndScrollParents) { |
810 if (m_hasScrollParent) | 812 if (m_hasScrollParent) |
811 json->setBoolean("hasScrollParent", true); | 813 json->setBoolean("hasScrollParent", true); |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 { | 1348 { |
1347 if (!layer) { | 1349 if (!layer) { |
1348 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1350 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
1349 return; | 1351 return; |
1350 } | 1352 } |
1351 | 1353 |
1352 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1354 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1353 fprintf(stderr, "%s\n", output.utf8().data()); | 1355 fprintf(stderr, "%s\n", output.utf8().data()); |
1354 } | 1356 } |
1355 #endif | 1357 #endif |
OLD | NEW |