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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { | 713 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { |
714 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); | 714 std::unique_ptr<JSONArray> paintingPhasesJSON = JSONArray::create(); |
715 if (m_paintingPhase & GraphicsLayerPaintBackground) | 715 if (m_paintingPhase & GraphicsLayerPaintBackground) |
716 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); | 716 paintingPhasesJSON->pushString("GraphicsLayerPaintBackground"); |
717 if (m_paintingPhase & GraphicsLayerPaintForeground) | 717 if (m_paintingPhase & GraphicsLayerPaintForeground) |
718 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); | 718 paintingPhasesJSON->pushString("GraphicsLayerPaintForeground"); |
719 if (m_paintingPhase & GraphicsLayerPaintMask) | 719 if (m_paintingPhase & GraphicsLayerPaintMask) |
720 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); | 720 paintingPhasesJSON->pushString("GraphicsLayerPaintMask"); |
721 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) | 721 if (m_paintingPhase & GraphicsLayerPaintChildClippingMask) |
722 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"); | 722 paintingPhasesJSON->pushString("GraphicsLayerPaintChildClippingMask"); |
| 723 if (m_paintingPhase & GraphicsLayerPaintAncestorClippingMask) |
| 724 paintingPhasesJSON->pushString("GraphicsLayerPaintAncestorClippingMask"); |
723 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) | 725 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) |
724 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); | 726 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); |
725 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) | 727 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) |
726 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); | 728 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); |
727 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); | 729 json->setArray("paintingPhases", std::move(paintingPhasesJSON)); |
728 } | 730 } |
729 | 731 |
730 if (flags & LayerTreeIncludesClipAndScrollParents) { | 732 if (flags & LayerTreeIncludesClipAndScrollParents) { |
731 if (m_hasScrollParent) | 733 if (m_hasScrollParent) |
732 json->setBoolean("hasScrollParent", true); | 734 json->setBoolean("hasScrollParent", true); |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { | 1310 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { |
1309 if (!layer) { | 1311 if (!layer) { |
1310 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; | 1312 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; |
1311 return; | 1313 return; |
1312 } | 1314 } |
1313 | 1315 |
1314 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1316 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1315 LOG(INFO) << output.utf8().data(); | 1317 LOG(INFO) << output.utf8().data(); |
1316 } | 1318 } |
1317 #endif | 1319 #endif |
OLD | NEW |