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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp

Issue 2858963002: Replace ASSERT with DCHECK in core/ (Closed)
Patch Set: WorkerBackingThread Created 3 years, 7 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: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
index ebd8677aa0f0974de3f7cdf621489e95a648d402..b59a07a1cf8bfedd48e081a3888baff1b8ca7b0d 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
@@ -78,7 +78,7 @@ void OffscreenCanvas::SetSize(const IntSize& size) {
}
void OffscreenCanvas::SetNeutered() {
- ASSERT(!context_);
+ DCHECK(!context_);
is_neutered_ = true;
size_.SetWidth(0);
size_.SetHeight(0);
@@ -209,7 +209,7 @@ void OffscreenCanvas::RegisterRenderingContextFactory(
CanvasRenderingContext::ContextType type =
rendering_context_factory->GetContextType();
ASSERT(type < CanvasRenderingContext::kContextTypeCount);
- ASSERT(!RenderingContextFactories()[type]);
+ DCHECK(!RenderingContextFactories()[type]);
RenderingContextFactories()[type] = std::move(rendering_context_factory);
}

Powered by Google App Engine
This is Rietveld 408576698