| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #ifndef NDEBUG | 65 #ifndef NDEBUG |
| 66 #include <stdio.h> | 66 #include <stdio.h> |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 namespace blink { | 69 namespace blink { |
| 70 | 70 |
| 71 static bool s_drawDebugRedFill = true; | 71 static bool s_drawDebugRedFill = true; |
| 72 | 72 |
| 73 // TODO(wangxianzhu): Remove this when we no longer invalidate rects. | 73 // TODO(wangxianzhu): Remove this when we no longer invalidate rects. |
| 74 struct PaintInvalidationTrackingInfo { | 74 struct PaintInvalidationTrackingInfo { |
| 75 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 75 Vector<FloatRect> invalidationRects; | 76 Vector<FloatRect> invalidationRects; |
| 76 Vector<String> invalidationObjects; | 77 Vector<String> invalidationObjects; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 typedef HashMap<const GraphicsLayer*, PaintInvalidationTrackingInfo> PaintInvali
dationTrackingMap; | 80 typedef HashMap<const GraphicsLayer*, PaintInvalidationTrackingInfo> PaintInvali
dationTrackingMap; |
| 80 static PaintInvalidationTrackingMap& paintInvalidationTrackingMap() | 81 static PaintInvalidationTrackingMap& paintInvalidationTrackingMap() |
| 81 { | 82 { |
| 82 DEFINE_STATIC_LOCAL(PaintInvalidationTrackingMap, map, ()); | 83 DEFINE_STATIC_LOCAL(PaintInvalidationTrackingMap, map, ()); |
| 83 return map; | 84 return map; |
| 84 } | 85 } |
| (...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1222 { | 1223 { |
| 1223 if (!layer) { | 1224 if (!layer) { |
| 1224 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1225 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1225 return; | 1226 return; |
| 1226 } | 1227 } |
| 1227 | 1228 |
| 1228 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1229 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1229 fprintf(stderr, "%s\n", output.utf8().data()); | 1230 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1230 } | 1231 } |
| 1231 #endif | 1232 #endif |
| OLD | NEW |