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