| 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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 & GraphicsLayerPaintOverflowContents) | 723 if (m_paintingPhase & GraphicsLayerPaintOverflowContents) |
| 724 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); | 724 paintingPhasesJSON->pushString("GraphicsLayerPaintOverflowContents"); |
| 725 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) | 725 if (m_paintingPhase & GraphicsLayerPaintCompositedScroll) |
| 726 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); | 726 paintingPhasesJSON->pushString("GraphicsLayerPaintCompositedScroll"); |
| 727 if (m_paintingPhase & GraphicsLayerPaintDecoration) |
| 728 paintingPhasesJSON->pushString("GraphicsLayerPaintDecoration"); |
| 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); |
| 733 if (m_hasClipParent) | 735 if (m_hasClipParent) |
| 734 json->setBoolean("hasClipParent", true); | 736 json->setBoolean("hasClipParent", true); |
| 735 } | 737 } |
| 736 | 738 |
| (...skipping 571 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 |