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

Unified Diff: cc/ThrottledTextureUploader.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/ThrottledTextureUploader.cpp
diff --git a/cc/ThrottledTextureUploader.cpp b/cc/ThrottledTextureUploader.cpp
index 179f2b61d1922974b29b2da08bfe3c10360eb5ec..943cdb44b6bf1530f650efd6eed6463f020cd820 100644
--- a/cc/ThrottledTextureUploader.cpp
+++ b/cc/ThrottledTextureUploader.cpp
@@ -113,7 +113,7 @@ void ThrottledTextureUploader::markPendingUploadsAsNonBlocking()
it->get()->markAsNonBlocking();
}
- ASSERT(!m_numBlockingTextureUploads);
+ DCHECK(!m_numBlockingTextureUploads);
}
double ThrottledTextureUploader::estimatedTexturesPerSecond()
@@ -121,7 +121,7 @@ double ThrottledTextureUploader::estimatedTexturesPerSecond()
processQueries();
// The history should never be empty because we initialize all elements with an estimate.
- ASSERT(m_texturesPerSecondHistory.size() == uploadHistorySize);
+ DCHECK(m_texturesPerSecondHistory.size() == uploadHistorySize);
// Sort the history and use the median as our estimate.
std::vector<double> sortedHistory(m_texturesPerSecondHistory.begin(),
« cc/CCCompletionEvent.h ('K') | « cc/TextureCopier.cpp ('k') | cc/TiledLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698