Bug 1332307 - Add GPUVideoTextureHost::Unlock() r=nical

This commit is contained in:
Sotaro Ikeda 2017-01-23 12:34:59 -08:00
parent e22d0e0c87
commit 40c4934907
2 changed files with 11 additions and 0 deletions

View File

@ -33,6 +33,15 @@ GPUVideoTextureHost::Lock()
return mWrappedTextureHost->Lock();
}
void
GPUVideoTextureHost::Unlock()
{
if (!mWrappedTextureHost) {
return;
}
mWrappedTextureHost->Unlock();
}
bool
GPUVideoTextureHost::BindTextureSource(CompositableTextureSourceRef& aTexture)
{

View File

@ -26,6 +26,8 @@ public:
virtual bool Lock() override;
virtual void Unlock() override;
virtual gfx::SurfaceFormat GetFormat() const override;
virtual bool BindTextureSource(CompositableTextureSourceRef& aTexture) override;