| 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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 } | 772 } |
| 773 json->setArray("paintInvalidations", std::move(paintInvalidation
sJSON)); | 773 json->setArray("paintInvalidations", std::move(paintInvalidation
sJSON)); |
| 774 } | 774 } |
| 775 | 775 |
| 776 Vector<UnderPaintInvalidation>& underPaintInvalidations = it->value.
underPaintInvalidations; | 776 Vector<UnderPaintInvalidation>& underPaintInvalidations = it->value.
underPaintInvalidations; |
| 777 if (!underPaintInvalidations.isEmpty()) { | 777 if (!underPaintInvalidations.isEmpty()) { |
| 778 std::unique_ptr<JSONArray> underPaintInvalidationsJSON = JSONArr
ay::create(); | 778 std::unique_ptr<JSONArray> underPaintInvalidationsJSON = JSONArr
ay::create(); |
| 779 for (auto& underPaintInvalidation : underPaintInvalidations) { | 779 for (auto& underPaintInvalidation : underPaintInvalidations) { |
| 780 std::unique_ptr<JSONObject> underPaintInvalidationJSON = JSO
NObject::create(); | 780 std::unique_ptr<JSONObject> underPaintInvalidationJSON = JSO
NObject::create(); |
| 781 underPaintInvalidationJSON->setDouble("x", underPaintInvalid
ation.x); | 781 underPaintInvalidationJSON->setDouble("x", underPaintInvalid
ation.x); |
| 782 underPaintInvalidationJSON->setDouble("y", underPaintInvalid
ation.x); | 782 underPaintInvalidationJSON->setDouble("y", underPaintInvalid
ation.y); |
| 783 underPaintInvalidationJSON->setString("oldPixel", Color(unde
rPaintInvalidation.oldPixel).nameForLayoutTreeAsText()); | 783 underPaintInvalidationJSON->setString("oldPixel", Color(unde
rPaintInvalidation.oldPixel).nameForLayoutTreeAsText()); |
| 784 underPaintInvalidationJSON->setString("newPixel", Color(unde
rPaintInvalidation.newPixel).nameForLayoutTreeAsText()); | 784 underPaintInvalidationJSON->setString("newPixel", Color(unde
rPaintInvalidation.newPixel).nameForLayoutTreeAsText()); |
| 785 underPaintInvalidationsJSON->pushObject(std::move(underPaint
InvalidationJSON)); | 785 underPaintInvalidationsJSON->pushObject(std::move(underPaint
InvalidationJSON)); |
| 786 } | 786 } |
| 787 json->setArray("underPaintInvalidations", std::move(underPaintIn
validationsJSON)); | 787 json->setArray("underPaintInvalidations", std::move(underPaintIn
validationsJSON)); |
| 788 } | 788 } |
| 789 } | 789 } |
| 790 } | 790 } |
| 791 | 791 |
| 792 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { | 792 if ((flags & LayerTreeIncludesPaintingPhases) && m_paintingPhase) { |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 { | 1346 { |
| 1347 if (!layer) { | 1347 if (!layer) { |
| 1348 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1348 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1349 return; | 1349 return; |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1352 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1353 fprintf(stderr, "%s\n", output.utf8().data()); | 1353 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1354 } | 1354 } |
| 1355 #endif | 1355 #endif |
| OLD | NEW |