| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 #include "wtf/HashSet.h" | 56 #include "wtf/HashSet.h" |
| 57 #include "wtf/text/WTFString.h" | 57 #include "wtf/text/WTFString.h" |
| 58 #include <algorithm> | 58 #include <algorithm> |
| 59 | 59 |
| 60 #ifndef NDEBUG | 60 #ifndef NDEBUG |
| 61 #include <stdio.h> | 61 #include <stdio.h> |
| 62 #endif | 62 #endif |
| 63 | 63 |
| 64 namespace blink { | 64 namespace blink { |
| 65 | 65 |
| 66 typedef HashMap<const GraphicsLayer*, Vector<FloatRect> > RepaintMap; | 66 typedef HashMap<const GraphicsLayer*, Vector<FloatRect>> RepaintMap; |
| 67 static RepaintMap& repaintRectMap() | 67 static RepaintMap& repaintRectMap() |
| 68 { | 68 { |
| 69 DEFINE_STATIC_LOCAL(RepaintMap, map, ()); | 69 DEFINE_STATIC_LOCAL(RepaintMap, map, ()); |
| 70 return map; | 70 return map; |
| 71 } | 71 } |
| 72 | 72 |
| 73 PassOwnPtr<GraphicsLayer> GraphicsLayer::create(GraphicsLayerFactory* factory, G
raphicsLayerClient* client) | 73 PassOwnPtr<GraphicsLayer> GraphicsLayer::create(GraphicsLayerFactory* factory, G
raphicsLayerClient* client) |
| 74 { | 74 { |
| 75 return factory->createGraphicsLayer(client); | 75 return factory->createGraphicsLayer(client); |
| 76 } | 76 } |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 #ifndef NDEBUG | 1112 #ifndef NDEBUG |
| 1113 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) | 1113 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) |
| 1114 { | 1114 { |
| 1115 if (!layer) | 1115 if (!layer) |
| 1116 return; | 1116 return; |
| 1117 | 1117 |
| 1118 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1118 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1119 fprintf(stderr, "%s\n", output.utf8().data()); | 1119 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1120 } | 1120 } |
| 1121 #endif | 1121 #endif |
| OLD | NEW |