Chromium Code Reviews| Index: media/gpu/android_video_decode_accelerator.cc | 
| diff --git a/media/gpu/android_video_decode_accelerator.cc b/media/gpu/android_video_decode_accelerator.cc | 
| index ccc9f0b90a657923fe19d20cb65b51a1f26af782..d748ec183c9a08465bacf5c23d14898e4986081f 100644 | 
| --- a/media/gpu/android_video_decode_accelerator.cc | 
| +++ b/media/gpu/android_video_decode_accelerator.cc | 
| @@ -1240,6 +1240,16 @@ void AndroidVideoDecodeAccelerator::Reset() { | 
| } | 
| } | 
| +void AndroidVideoDecodeAccelerator::SetSurface(int surface_id) { | 
| + config_.surface_id = surface_id; | 
| + codec_config_->surface_ = picture_buffer_manager_.SetSurface(surface_id); | 
| + if (media_codec_) | 
| + media_codec_->SetSurface(codec_config_->surface_.j_surface().obj()); | 
| + | 
| + // TODO(dalecurtis): What to do about AllocateSurface()? | 
| 
 
liberato (no reviews please)
2016/10/29 18:57:20
since we didn't restart, i think that there should
 
 | 
| + // TODO(dalecurtis): What to do about inflight configurations? | 
| +} | 
| + | 
| void AndroidVideoDecodeAccelerator::Destroy() { | 
| DVLOG(1) << __FUNCTION__; | 
| DCHECK(thread_checker_.CalledOnValidThread()); |