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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 ASSERT_NOT_REACHED(); | 817 ASSERT_NOT_REACHED(); |
818 } | 818 } |
819 return name; | 819 return name; |
820 } | 820 } |
821 | 821 |
822 void GraphicsLayer::setCompositingReasons(CompositingReasons reasons) | 822 void GraphicsLayer::setCompositingReasons(CompositingReasons reasons) |
823 { | 823 { |
824 m_debugInfo.setCompositingReasons(reasons); | 824 m_debugInfo.setCompositingReasons(reasons); |
825 } | 825 } |
826 | 826 |
827 void GraphicsLayer::setOwnerNodeId(int nodeId) | |
828 { | |
829 m_debugInfo.setOwnerNodeId(nodeId); | |
830 } | |
831 | |
832 void GraphicsLayer::setPosition(const FloatPoint& point) | 827 void GraphicsLayer::setPosition(const FloatPoint& point) |
833 { | 828 { |
834 m_position = point; | 829 m_position = point; |
835 platformLayer()->setPosition(m_position); | 830 platformLayer()->setPosition(m_position); |
836 } | 831 } |
837 | 832 |
838 void GraphicsLayer::setSize(const FloatSize& size) | 833 void GraphicsLayer::setSize(const FloatSize& size) |
839 { | 834 { |
840 // We are receiving negative sizes here that cause assertions to fail in the
compositor. Clamp them to 0 to | 835 // We are receiving negative sizes here that cause assertions to fail in the
compositor. Clamp them to 0 to |
841 // avoid those assertions. | 836 // avoid those assertions. |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1250 { | 1245 { |
1251 if (!layer) { | 1246 if (!layer) { |
1252 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1247 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
1253 return; | 1248 return; |
1254 } | 1249 } |
1255 | 1250 |
1256 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1251 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1257 fprintf(stderr, "%s\n", output.utf8().data()); | 1252 fprintf(stderr, "%s\n", output.utf8().data()); |
1258 } | 1253 } |
1259 #endif | 1254 #endif |
OLD | NEW |