Index: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp |
index ac1257dcc1a0f35381e1aa31b798d7fd08374099..d0fc1db2fb32f93dcf96079b55d90f74aa5dd0d7 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp |
@@ -211,7 +211,7 @@ bool HTMLVideoElement::copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interf |
if (!webMediaPlayer()) |
return false; |
- ASSERT(Extensions3DUtil::canUseCopyTextureCHROMIUM(GL_TEXTURE_2D, internalFormat, type, 0)); |
+ DCHECK(Extensions3DUtil::canUseCopyTextureCHROMIUM(GL_TEXTURE_2D, internalFormat, type, 0)); |
return webMediaPlayer()->copyVideoTextureToPlatformTexture(gl, texture, internalFormat, type, premultiplyAlpha, flipY); |
} |
@@ -327,7 +327,7 @@ IntSize HTMLVideoElement::bitmapSourceSize() const |
ScriptPromise HTMLVideoElement::createImageBitmap(ScriptState* scriptState, EventTarget& eventTarget, int sx, int sy, int sw, int sh, const ImageBitmapOptions& options, ExceptionState& exceptionState) |
{ |
- ASSERT(eventTarget.toLocalDOMWindow()); |
+ DCHECK(eventTarget.toLocalDOMWindow()); |
if (getNetworkState() == HTMLMediaElement::NETWORK_EMPTY) { |
exceptionState.throwDOMException(InvalidStateError, "The provided element has not retrieved data."); |
return ScriptPromise(); |