Index: media/gpu/avda_shared_state.cc |
diff --git a/media/gpu/avda_shared_state.cc b/media/gpu/avda_shared_state.cc |
index 1090c2b74e9180155a6ef93bd95060b05fe99e54..48ad88cc591907965b318bf4bce22dd99bec4df3 100644 |
--- a/media/gpu/avda_shared_state.cc |
+++ b/media/gpu/avda_shared_state.cc |
@@ -122,6 +122,8 @@ void AVDASharedState::WaitForFrameAvailable() { |
void AVDASharedState::SetSurfaceTexture( |
scoped_refptr<gl::SurfaceTexture> surface_texture, |
GLuint attached_service_id) { |
+ DCHECK(surface_texture); |
+ DCHECK(attached_service_id); |
surface_texture_ = surface_texture; |
surface_texture_service_id_ = attached_service_id; |
context_ = gl::GLContext::GetCurrent(); |