| 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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 GraphicsLayerDebugInfo& GraphicsLayer::debugInfo() | 505 GraphicsLayerDebugInfo& GraphicsLayer::debugInfo() |
| 506 { | 506 { |
| 507 return m_debugInfo; | 507 return m_debugInfo; |
| 508 } | 508 } |
| 509 | 509 |
| 510 blink::WebGraphicsLayerDebugInfo* GraphicsLayer::takeDebugInfo() | 510 blink::WebGraphicsLayerDebugInfo* GraphicsLayer::takeDebugInfo() |
| 511 { | 511 { |
| 512 return m_debugInfo.clone(); | 512 return m_debugInfo.clone(); |
| 513 } | 513 } |
| 514 | 514 |
| 515 blink::WebGraphicsLayerDebugInfo* GraphicsLayer::takeDebugInfoFor(WebLayer* laye
r) |
| 516 { |
| 517 GraphicsLayerDebugInfo* clone = m_debugInfo.clone(); |
| 518 clone->setDebugName(debugName(layer)); |
| 519 return clone; |
| 520 } |
| 521 |
| 515 WebLayer* GraphicsLayer::contentsLayerIfRegistered() | 522 WebLayer* GraphicsLayer::contentsLayerIfRegistered() |
| 516 { | 523 { |
| 517 clearContentsLayerIfUnregistered(); | 524 clearContentsLayerIfUnregistered(); |
| 518 return m_contentsLayer; | 525 return m_contentsLayer; |
| 519 } | 526 } |
| 520 | 527 |
| 521 double GraphicsLayer::backingStoreMemoryEstimate() const | 528 double GraphicsLayer::backingStoreMemoryEstimate() const |
| 522 { | 529 { |
| 523 if (!drawsContent()) | 530 if (!drawsContent()) |
| 524 return 0; | 531 return 0; |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 #ifndef NDEBUG | 1247 #ifndef NDEBUG |
| 1241 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) | 1248 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) |
| 1242 { | 1249 { |
| 1243 if (!layer) | 1250 if (!layer) |
| 1244 return; | 1251 return; |
| 1245 | 1252 |
| 1246 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); | 1253 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); |
| 1247 fprintf(stderr, "%s\n", output.utf8().data()); | 1254 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1248 } | 1255 } |
| 1249 #endif | 1256 #endif |
| OLD | NEW |