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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 m_name = String::format("GraphicsLayer(%p) ", this) + name; | 1062 m_name = String::format("GraphicsLayer(%p) ", this) + name; |
1063 updateNames(); | 1063 updateNames(); |
1064 } | 1064 } |
1065 | 1065 |
1066 int GraphicsLayer::debugID() const | 1066 int GraphicsLayer::debugID() const |
1067 { | 1067 { |
1068 // FIXME: change this to assert m_layer always exists, and remove enum. | 1068 // FIXME: change this to assert m_layer always exists, and remove enum. |
1069 return m_layer ? m_layer->layer()->id() : DebugIDNoCompositedLayer; | 1069 return m_layer ? m_layer->layer()->id() : DebugIDNoCompositedLayer; |
1070 } | 1070 } |
1071 | 1071 |
| 1072 void GraphicsLayer::setCompositingReasons(WebKit::WebCompositingReasons reasons) |
| 1073 { |
| 1074 m_layer->layer()->setCompositingReasons(reasons); |
| 1075 } |
| 1076 |
1072 void GraphicsLayer::setPosition(const FloatPoint& point) | 1077 void GraphicsLayer::setPosition(const FloatPoint& point) |
1073 { | 1078 { |
1074 m_position = point; | 1079 m_position = point; |
1075 updateLayerPosition(); | 1080 updateLayerPosition(); |
1076 } | 1081 } |
1077 | 1082 |
1078 void GraphicsLayer::setAnchorPoint(const FloatPoint3D& point) | 1083 void GraphicsLayer::setAnchorPoint(const FloatPoint3D& point) |
1079 { | 1084 { |
1080 m_anchorPoint = point; | 1085 m_anchorPoint = point; |
1081 updateAnchorPoint(); | 1086 updateAnchorPoint(); |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1442 #ifndef NDEBUG | 1447 #ifndef NDEBUG |
1443 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) | 1448 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) |
1444 { | 1449 { |
1445 if (!layer) | 1450 if (!layer) |
1446 return; | 1451 return; |
1447 | 1452 |
1448 String output = layer->layerTreeAsText(LayerTreeAsTextDebug | LayerTreeAsTex
tIncludeVisibleRects); | 1453 String output = layer->layerTreeAsText(LayerTreeAsTextDebug | LayerTreeAsTex
tIncludeVisibleRects); |
1449 fprintf(stderr, "%s\n", output.utf8().data()); | 1454 fprintf(stderr, "%s\n", output.utf8().data()); |
1450 } | 1455 } |
1451 #endif | 1456 #endif |
OLD | NEW |