| Index: content/renderer/media/webmediaplayer_impl.cc
|
| diff --git a/content/renderer/media/webmediaplayer_impl.cc b/content/renderer/media/webmediaplayer_impl.cc
|
| index b7094f6c74259da75fc4b8451584d229647a75dc..2fa00322b6ac60bfbff281b48039f98d47878dc4 100644
|
| --- a/content/renderer/media/webmediaplayer_impl.cc
|
| +++ b/content/renderer/media/webmediaplayer_impl.cc
|
| @@ -643,11 +643,11 @@ bool WebMediaPlayerImpl::copyVideoTextureToPlatformTexture(
|
| // avoid it in user builds. As a result assume (below) that |texture| is
|
| // bound when this method is called, and only verify this fact when
|
| // DCHECK_IS_ON.
|
| - if (DCHECK_IS_ON()) {
|
| - GLint bound_texture = 0;
|
| - web_graphics_context->getIntegerv(GL_TEXTURE_BINDING_2D, &bound_texture);
|
| - DCHECK_EQ(static_cast<GLuint>(bound_texture), texture);
|
| - }
|
| +#if DCHECK_IS_ON
|
| + GLint bound_texture = 0;
|
| + web_graphics_context->getIntegerv(GL_TEXTURE_BINDING_2D, &bound_texture);
|
| + DCHECK_EQ(static_cast<GLuint>(bound_texture), texture);
|
| +#endif
|
|
|
| uint32 source_texture = web_graphics_context->createTexture();
|
|
|
|
|