Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: Source/platform/graphics/GraphicsLayer.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #ifndef NDEBUG 57 #ifndef NDEBUG
58 #include <stdio.h> 58 #include <stdio.h>
59 #endif 59 #endif
60 60
61 using blink::Platform; 61 using blink::Platform;
62 using blink::WebAnimation; 62 using blink::WebAnimation;
63 using blink::WebFilterOperations; 63 using blink::WebFilterOperations;
64 using blink::WebLayer; 64 using blink::WebLayer;
65 using blink::WebPoint; 65 using blink::WebPoint;
66 66
67 namespace WebCore { 67 namespace blink {
68 68
69 typedef HashMap<const GraphicsLayer*, Vector<FloatRect> > RepaintMap; 69 typedef HashMap<const GraphicsLayer*, Vector<FloatRect> > RepaintMap;
70 static RepaintMap& repaintRectMap() 70 static RepaintMap& repaintRectMap()
71 { 71 {
72 DEFINE_STATIC_LOCAL(RepaintMap, map, ()); 72 DEFINE_STATIC_LOCAL(RepaintMap, map, ());
73 return map; 73 return map;
74 } 74 }
75 75
76 PassOwnPtr<GraphicsLayer> GraphicsLayer::create(GraphicsLayerFactory* factory, G raphicsLayerClient* client) 76 PassOwnPtr<GraphicsLayer> GraphicsLayer::create(GraphicsLayerFactory* factory, G raphicsLayerClient* client)
77 { 77 {
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 { 1115 {
1116 // Do nothing. 1116 // Do nothing.
1117 } 1117 }
1118 1118
1119 void GraphicsLayer::didScroll() 1119 void GraphicsLayer::didScroll()
1120 { 1120 {
1121 if (m_scrollableArea) 1121 if (m_scrollableArea)
1122 m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minim umScrollPosition() + toIntSize(m_layer->layer()->scrollPosition())); 1122 m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minim umScrollPosition() + toIntSize(m_layer->layer()->scrollPosition()));
1123 } 1123 }
1124 1124
1125 } // namespace WebCore 1125 } // namespace blink
1126 1126
1127 #ifndef NDEBUG 1127 #ifndef NDEBUG
1128 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) 1128 void showGraphicsLayerTree(const blink::GraphicsLayer* layer)
1129 { 1129 {
1130 if (!layer) 1130 if (!layer)
1131 return; 1131 return;
1132 1132
1133 String output = layer->layerTreeAsText(WebCore::LayerTreeIncludesDebugInfo); 1133 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1134 fprintf(stderr, "%s\n", output.utf8().data()); 1134 fprintf(stderr, "%s\n", output.utf8().data());
1135 } 1135 }
1136 #endif 1136 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.h ('k') | Source/platform/graphics/GraphicsLayerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698