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

Unified Diff: cc/CCLayerTilingData.cpp

Issue 10914327: Make cc's use of WTF::HashMap robust to key/value change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/CCDirectRenderer.cpp ('k') | cc/CCLayerTreeHost.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCLayerTilingData.cpp
diff --git a/cc/CCLayerTilingData.cpp b/cc/CCLayerTilingData.cpp
index 5edde41593370e2e3c74356f7f461f97133e71b5..f650aa3f45721e42cbbfa364c9bf23a02f6ca6a1 100644
--- a/cc/CCLayerTilingData.cpp
+++ b/cc/CCLayerTilingData.cpp
@@ -132,8 +132,13 @@ void CCLayerTilingData::setBounds(const IntSize& size)
contentRectToTileIndices(IntRect(IntPoint(), size), left, top, right, bottom);
Vector<TileMapKey> invalidTileKeys;
for (TileMap::const_iterator it = m_tiles.begin(); it != m_tiles.end(); ++it) {
+#if WTF_NEW_HASHMAP_ITERATORS_INTERFACE
+ if (it->key.first > right || it->key.second > bottom)
+ invalidTileKeys.append(it->key);
+#else
if (it->first.first > right || it->first.second > bottom)
invalidTileKeys.append(it->first);
+#endif
}
for (size_t i = 0; i < invalidTileKeys.size(); ++i)
m_tiles.remove(invalidTileKeys[i]);
« no previous file with comments | « cc/CCDirectRenderer.cpp ('k') | cc/CCLayerTreeHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698