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 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 return tracedValue; | 1209 return tracedValue; |
1210 } | 1210 } |
1211 | 1211 |
1212 PaintController* GraphicsLayer::paintController() | 1212 PaintController* GraphicsLayer::paintController() |
1213 { | 1213 { |
1214 if (!m_paintController) | 1214 if (!m_paintController) |
1215 m_paintController = PaintController::create(); | 1215 m_paintController = PaintController::create(); |
1216 return m_paintController.get(); | 1216 return m_paintController.get(); |
1217 } | 1217 } |
1218 | 1218 |
| 1219 void GraphicsLayer::setElementId(uint64_t id) |
| 1220 { |
| 1221 if (WebLayer* layer = platformLayer()) |
| 1222 layer->setElementId(id); |
| 1223 } |
| 1224 |
| 1225 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties) |
| 1226 { |
| 1227 if (WebLayer* layer = platformLayer()) |
| 1228 layer->setCompositorMutableProperties(properties); |
| 1229 } |
| 1230 |
1219 } // namespace blink | 1231 } // namespace blink |
1220 | 1232 |
1221 #ifndef NDEBUG | 1233 #ifndef NDEBUG |
1222 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) | 1234 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) |
1223 { | 1235 { |
1224 if (!layer) { | 1236 if (!layer) { |
1225 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1237 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
1226 return; | 1238 return; |
1227 } | 1239 } |
1228 | 1240 |
1229 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1241 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1230 fprintf(stderr, "%s\n", output.utf8().data()); | 1242 fprintf(stderr, "%s\n", output.utf8().data()); |
1231 } | 1243 } |
1232 #endif | 1244 #endif |
OLD | NEW |