mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1251726 - Check if Compositor is set r=nical
This commit is contained in:
parent
b935d483a8
commit
81561bca72
@ -543,9 +543,11 @@ BufferTextureHost::PrepareTextureSource(CompositableTextureSourceRef& aTexture)
|
||||
bool compatibleFormats = texture
|
||||
&& (mFormat == texture->GetFormat()
|
||||
|| (mFormat == gfx::SurfaceFormat::YUV
|
||||
&& mCompositor
|
||||
&& mCompositor->SupportsEffect(EffectTypes::YCBCR)
|
||||
&& texture->GetNextSibling())
|
||||
|| (mFormat == gfx::SurfaceFormat::YUV
|
||||
&& mCompositor
|
||||
&& !mCompositor->SupportsEffect(EffectTypes::YCBCR)
|
||||
&& texture->GetFormat() == gfx::SurfaceFormat::B8G8R8X8));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user