| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 } | 524 } |
| 525 } | 525 } |
| 526 | 526 |
| 527 void GraphicsLayer::collectTrackedRepaintRects(Vector<FloatRect>& rects) const | 527 void GraphicsLayer::collectTrackedRepaintRects(Vector<FloatRect>& rects) const |
| 528 { | 528 { |
| 529 if (!m_client->isTrackingRepaints()) | 529 if (!m_client->isTrackingRepaints()) |
| 530 return; | 530 return; |
| 531 | 531 |
| 532 RepaintMap::iterator repaintIt = repaintRectMap().find(this); | 532 RepaintMap::iterator repaintIt = repaintRectMap().find(this); |
| 533 if (repaintIt != repaintRectMap().end()) | 533 if (repaintIt != repaintRectMap().end()) |
| 534 rects.append(repaintIt->value); | 534 rects.appendVector(repaintIt->value); |
| 535 } | 535 } |
| 536 | 536 |
| 537 void GraphicsLayer::dumpLayer(TextStream& ts, int indent, LayerTreeFlags flags,
RenderingContextMap& renderingContextMap) const | 537 void GraphicsLayer::dumpLayer(TextStream& ts, int indent, LayerTreeFlags flags,
RenderingContextMap& renderingContextMap) const |
| 538 { | 538 { |
| 539 writeIndent(ts, indent); | 539 writeIndent(ts, indent); |
| 540 ts << "(" << "GraphicsLayer"; | 540 ts << "(" << "GraphicsLayer"; |
| 541 | 541 |
| 542 if (flags & LayerTreeIncludesDebugInfo) { | 542 if (flags & LayerTreeIncludesDebugInfo) { |
| 543 ts << " " << static_cast<void*>(const_cast<GraphicsLayer*>(this)); | 543 ts << " " << static_cast<void*>(const_cast<GraphicsLayer*>(this)); |
| 544 ts << " \"" << m_client->debugName(this) << "\""; | 544 ts << " \"" << m_client->debugName(this) << "\""; |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 #ifndef NDEBUG | 1224 #ifndef NDEBUG |
| 1225 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) | 1225 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) |
| 1226 { | 1226 { |
| 1227 if (!layer) | 1227 if (!layer) |
| 1228 return; | 1228 return; |
| 1229 | 1229 |
| 1230 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); | 1230 String output = layer->layerTreeAsText(WebCore::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 |