| 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 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 PaintController& GraphicsLayer::getPaintController() | 1200 PaintController& GraphicsLayer::getPaintController() |
| 1201 { | 1201 { |
| 1202 RELEASE_ASSERT(drawsContent()); | 1202 RELEASE_ASSERT(drawsContent()); |
| 1203 if (!m_paintController) | 1203 if (!m_paintController) |
| 1204 m_paintController = PaintController::create(); | 1204 m_paintController = PaintController::create(); |
| 1205 return *m_paintController; | 1205 return *m_paintController; |
| 1206 } | 1206 } |
| 1207 | 1207 |
| 1208 void GraphicsLayer::setElementId(uint64_t id) | 1208 void GraphicsLayer::setElementId(CompositorElementId id) |
| 1209 { | 1209 { |
| 1210 if (WebLayer* layer = platformLayer()) | 1210 if (WebLayer* layer = platformLayer()) |
| 1211 layer->setElementId(id); | 1211 layer->setElementId(id); |
| 1212 } | 1212 } |
| 1213 | 1213 |
| 1214 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties) | 1214 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties) |
| 1215 { | 1215 { |
| 1216 if (WebLayer* layer = platformLayer()) | 1216 if (WebLayer* layer = platformLayer()) |
| 1217 layer->setCompositorMutableProperties(properties); | 1217 layer->setCompositorMutableProperties(properties); |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 } // namespace blink | 1220 } // namespace blink |
| 1221 | 1221 |
| 1222 #ifndef NDEBUG | 1222 #ifndef NDEBUG |
| 1223 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) | 1223 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) |
| 1224 { | 1224 { |
| 1225 if (!layer) { | 1225 if (!layer) { |
| 1226 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1226 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1227 return; | 1227 return; |
| 1228 } | 1228 } |
| 1229 | 1229 |
| 1230 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1230 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1231 fprintf(stderr, "%s\n", output.utf8().data()); | 1231 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1232 } | 1232 } |
| 1233 #endif | 1233 #endif |
| OLD | NEW |