| Index: content/common/gpu/media/avda_shared_state.cc
|
| diff --git a/content/common/gpu/media/avda_shared_state.cc b/content/common/gpu/media/avda_shared_state.cc
|
| index c182bf0538593f17bb80cb237a6a2addaf678a71..b44b6ffb1066296b28536b9c067a636000648eea 100644
|
| --- a/content/common/gpu/media/avda_shared_state.cc
|
| +++ b/content/common/gpu/media/avda_shared_state.cc
|
| @@ -24,7 +24,7 @@ void AVDASharedState::WaitForFrameAvailable() {
|
| frame_available_event_.Wait();
|
| }
|
|
|
| -void AVDASharedState::did_attach_surface_texture() {
|
| +void AVDASharedState::DidAttachSurfaceTexture() {
|
| context_ = gfx::GLContext::GetCurrent();
|
| surface_ = gfx::GLSurface::GetCurrent();
|
| DCHECK(context_);
|
| @@ -33,4 +33,10 @@ void AVDASharedState::did_attach_surface_texture() {
|
| surface_texture_is_attached_ = true;
|
| }
|
|
|
| +void AVDASharedState::DidDetachSurfaceTexture() {
|
| + context_ = nullptr;
|
| + surface_ = nullptr;
|
| + surface_texture_is_attached_ = false;
|
| +}
|
| +
|
| } // namespace content
|
|
|