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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 ASSERT_NOT_REACHED(); | 820 ASSERT_NOT_REACHED(); |
821 } | 821 } |
822 return name; | 822 return name; |
823 } | 823 } |
824 | 824 |
825 void GraphicsLayer::setCompositingReasons(CompositingReasons reasons) | 825 void GraphicsLayer::setCompositingReasons(CompositingReasons reasons) |
826 { | 826 { |
827 m_debugInfo.setCompositingReasons(reasons); | 827 m_debugInfo.setCompositingReasons(reasons); |
828 } | 828 } |
829 | 829 |
830 void GraphicsLayer::setOwnerNodeId(int nodeId) | |
831 { | |
832 m_debugInfo.setOwnerNodeId(nodeId); | |
833 } | |
834 | |
835 void GraphicsLayer::setPosition(const FloatPoint& point) | 830 void GraphicsLayer::setPosition(const FloatPoint& point) |
836 { | 831 { |
837 m_position = point; | 832 m_position = point; |
838 platformLayer()->setPosition(m_position); | 833 platformLayer()->setPosition(m_position); |
839 } | 834 } |
840 | 835 |
841 void GraphicsLayer::setSize(const FloatSize& size) | 836 void GraphicsLayer::setSize(const FloatSize& size) |
842 { | 837 { |
843 // We are receiving negative sizes here that cause assertions to fail in the
compositor. Clamp them to 0 to | 838 // We are receiving negative sizes here that cause assertions to fail in the
compositor. Clamp them to 0 to |
844 // avoid those assertions. | 839 // avoid those assertions. |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 { | 1259 { |
1265 if (!layer) { | 1260 if (!layer) { |
1266 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1261 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
1267 return; | 1262 return; |
1268 } | 1263 } |
1269 | 1264 |
1270 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1265 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1271 fprintf(stderr, "%s\n", output.utf8().data()); | 1266 fprintf(stderr, "%s\n", output.utf8().data()); |
1272 } | 1267 } |
1273 #endif | 1268 #endif |
OLD | NEW |