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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { | 731 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { |
732 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); | 732 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); |
733 if (m_paintingPhase & GraphicsLayerPaintBackground) | 733 if (m_paintingPhase & GraphicsLayerPaintBackground) |
734 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); | 734 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); |
735 if (m_paintingPhase & GraphicsLayerPaintForeground) | 735 if (m_paintingPhase & GraphicsLayerPaintForeground) |
736 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); | 736 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); |
737 if (m_paintingPhase & GraphicsLayerPaintMask) | 737 if (m_paintingPhase & GraphicsLayerPaintMask) |
738 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); | 738 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); |
739 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) | 739 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) |
740 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"); | 740 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"); |
| 741 if (m_paintingPhase & GraphicsLayerPaintAncestorClippingMask) |
| 742 paintingPhasesJSON->pushString("GraphicsLayerPaintAncestorClippingMask"); |
741 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) | 743 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) |
742 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); | 744 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); |
743 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) | 745 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) |
744 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); | 746 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); |
745 if (m_paintingPhase & GraphicsLayerPaintDecoration) | 747 if (m_paintingPhase & GraphicsLayerPaintDecoration) |
746 paintingPhasesJSON->pushString("GraphicsLayerPaintDecoration"); | 748 paintingPhasesJSON->pushString("GraphicsLayerPaintDecoration"); |
747 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); | 749 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); |
748 } | 750 } |
749 | 751 |
750 if (flags & LayerTreeIncludesClipAndScrollParents) { | 752 if (flags & LayerTreeIncludesClipAndScrollParents) { |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1353 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { | 1355 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { |
1354 if (!layer) { | 1356 if (!layer) { |
1355 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; | 1357 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; |
1356 return; | 1358 return; |
1357 } | 1359 } |
1358 | 1360 |
1359 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1361 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1360 LOG(INFO) << output.utf8().data(); | 1362 LOG(INFO) << output.utf8().data(); |
1361 } | 1363 } |
1362 #endif | 1364 #endif |
OLD | NEW |