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 b59a07a1cf8bfedd48e081a3888baff1b8ca7b0d..a5f07a83bdff63fc4488f5edc38b27711c4deadb 100644 |
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp |
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp |
@@ -200,7 +200,7 @@ OffscreenCanvas::RenderingContextFactories() { |
CanvasRenderingContextFactory* OffscreenCanvas::GetRenderingContextFactory( |
int type) { |
- ASSERT(type < CanvasRenderingContext::kContextTypeCount); |
+ DCHECK(type < CanvasRenderingContext::kContextTypeCount); |
return RenderingContextFactories()[type].get(); |
} |
@@ -208,7 +208,7 @@ void OffscreenCanvas::RegisterRenderingContextFactory( |
std::unique_ptr<CanvasRenderingContextFactory> rendering_context_factory) { |
CanvasRenderingContext::ContextType type = |
rendering_context_factory->GetContextType(); |
- ASSERT(type < CanvasRenderingContext::kContextTypeCount); |
+ DCHECK(type < CanvasRenderingContext::kContextTypeCount); |
DCHECK(!RenderingContextFactories()[type]); |
RenderingContextFactories()[type] = std::move(rendering_context_factory); |
} |