mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 19:39:13 +00:00
Bug 1332307 - Add GPUVideoTextureHost::Unlock() r=nical
This commit is contained in:
parent
e22d0e0c87
commit
40c4934907
@ -33,6 +33,15 @@ GPUVideoTextureHost::Lock()
|
||||
return mWrappedTextureHost->Lock();
|
||||
}
|
||||
|
||||
void
|
||||
GPUVideoTextureHost::Unlock()
|
||||
{
|
||||
if (!mWrappedTextureHost) {
|
||||
return;
|
||||
}
|
||||
mWrappedTextureHost->Unlock();
|
||||
}
|
||||
|
||||
bool
|
||||
GPUVideoTextureHost::BindTextureSource(CompositableTextureSourceRef& aTexture)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user