| 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 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 } | 1178 } |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 PaintController* GraphicsLayer::paintController() | 1181 PaintController* GraphicsLayer::paintController() |
| 1182 { | 1182 { |
| 1183 if (!m_paintController) | 1183 if (!m_paintController) |
| 1184 m_paintController = PaintController::create(); | 1184 m_paintController = PaintController::create(); |
| 1185 return m_paintController.get(); | 1185 return m_paintController.get(); |
| 1186 } | 1186 } |
| 1187 | 1187 |
| 1188 void GraphicsLayer::setElementId(uint64_t id) |
| 1189 { |
| 1190 if (WebLayer* layer = platformLayer()) |
| 1191 layer->setElementId(id); |
| 1192 } |
| 1193 |
| 1194 void GraphicsLayer::setMutableProperties(uint32_t properties) |
| 1195 { |
| 1196 if (WebLayer* layer = platformLayer()) |
| 1197 layer->setMutableProperties(properties); |
| 1198 } |
| 1199 |
| 1188 } // namespace blink | 1200 } // namespace blink |
| 1189 | 1201 |
| 1190 #ifndef NDEBUG | 1202 #ifndef NDEBUG |
| 1191 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) | 1203 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) |
| 1192 { | 1204 { |
| 1193 if (!layer) { | 1205 if (!layer) { |
| 1194 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1206 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1195 return; | 1207 return; |
| 1196 } | 1208 } |
| 1197 | 1209 |
| 1198 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1210 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1199 fprintf(stderr, "%s\n", output.utf8().data()); | 1211 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1200 } | 1212 } |
| 1201 #endif | 1213 #endif |
| OLD | NEW |