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

Unified Diff: cc/CCLayerTilingData.cpp

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
Index: cc/CCLayerTilingData.cpp
diff --git a/cc/CCLayerTilingData.cpp b/cc/CCLayerTilingData.cpp
index 12c7aefc9bc5f88ef71f7139dfed076752977d0e..a5c6426becffb28599c61bab5ba7012793e66096 100644
--- a/cc/CCLayerTilingData.cpp
+++ b/cc/CCLayerTilingData.cpp
@@ -9,6 +9,8 @@
#include "CCLayerTilingData.h"
+#include "base/logging.h"
+
using namespace std;
namespace cc {
@@ -62,7 +64,7 @@ const CCLayerTilingData& CCLayerTilingData::operator=(const CCLayerTilingData& t
void CCLayerTilingData::addTile(PassOwnPtr<Tile> tile, int i, int j)
{
- ASSERT(!tileAt(i, j));
+ DCHECK(!tileAt(i, j));
tile->moveTo(i, j);
m_tiles.add(make_pair(i, j), tile);
}
@@ -87,7 +89,7 @@ void CCLayerTilingData::contentRectToTileIndices(const IntRect& contentRect, int
// An empty rect doesn't result in an empty set of tiles, so don't pass an empty rect.
// FIXME: Possibly we should fill a vector of tiles instead,
// since the normal use of this function is to enumerate some tiles.
- ASSERT(!contentRect.isEmpty());
+ DCHECK(!contentRect.isEmpty());
left = m_tilingData.tileXIndexFromSrcCoord(contentRect.x());
top = m_tilingData.tileYIndexFromSrcCoord(contentRect.y());
« cc/CCCompletionEvent.h ('K') | « cc/CCLayerSorter.cpp ('k') | cc/CCLayerTreeHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698