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

Unified Diff: cc/throttled_texture_uploader.cc

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase 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/throttled_texture_uploader.cc
diff --git a/cc/throttled_texture_uploader.cc b/cc/throttled_texture_uploader.cc
index 0e3f8291784516c50ead3a4f2f59fd8e653fc144..ec659f8d12b7bee9c1f55fe5ebe60fd57a33faea 100644
--- a/cc/throttled_texture_uploader.cc
+++ b/cc/throttled_texture_uploader.cc
@@ -136,7 +136,7 @@ void ThrottledTextureUploader::markPendingUploadsAsNonBlocking()
it->get()->markAsNonBlocking();
}
- ASSERT(!m_numBlockingTextureUploads);
+ CC_DCHECK(!m_numBlockingTextureUploads);
}
double ThrottledTextureUploader::estimatedTexturesPerSecond()
@@ -144,7 +144,7 @@ double ThrottledTextureUploader::estimatedTexturesPerSecond()
processQueries();
// The history should never be empty because we initialize all elements with an estimate.
- ASSERT(m_texturesPerSecondHistory.size() == uploadHistorySize);
+ CC_DCHECK(m_texturesPerSecondHistory.size() == uploadHistorySize);
// Sort the history and use the median as our estimate.
std::vector<double> sortedHistory(m_texturesPerSecondHistory.begin(),
@@ -199,10 +199,10 @@ void ThrottledTextureUploader::uploadTexture(CCResourceProvider* resourceProvide
IntSize destOffset = upload.geometry.destOffset;
texture->acquireBackingTexture(resourceProvider);
- ASSERT(texture->haveBackingTexture());
+ CC_DCHECK(texture->haveBackingTexture());
- ASSERT(resourceProvider->resourceType(texture->resourceId()) ==
- CCResourceProvider::GLTexture);
+ CC_DCHECK(resourceProvider->resourceType(texture->resourceId()) ==
+ CCResourceProvider::GLTexture);
WebGraphicsContext3D* paintContext = CCProxy::hasImplThread() ?
WebSharedGraphicsContext3D::compositorThreadContext() :
« no previous file with comments | « cc/threaded_unittest.cc ('k') | cc/tile_draw_quad.cc » ('j') | cc/yuv_video_draw_quad.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698