зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1543359 - P10. Add color range info to GPU and WR texture host. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D27243 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
235b08fe18
Коммит
0356401c43
|
@ -85,6 +85,13 @@ gfx::YUVColorSpace GPUVideoTextureHost::GetYUVColorSpace() const {
|
|||
return gfx::YUVColorSpace::UNKNOWN;
|
||||
}
|
||||
|
||||
gfx::ColorRange GPUVideoTextureHost::GetColorRange() const {
|
||||
if (mWrappedTextureHost) {
|
||||
return mWrappedTextureHost->GetColorRange();
|
||||
}
|
||||
return TextureHost::GetColorRange();
|
||||
}
|
||||
|
||||
gfx::IntSize GPUVideoTextureHost::GetSize() const {
|
||||
if (!mWrappedTextureHost) {
|
||||
return gfx::IntSize();
|
||||
|
|
|
@ -38,6 +38,7 @@ class GPUVideoTextureHost : public TextureHost {
|
|||
}
|
||||
|
||||
gfx::YUVColorSpace GetYUVColorSpace() const override;
|
||||
gfx::ColorRange GetColorRange() const override;
|
||||
|
||||
gfx::IntSize GetSize() const override;
|
||||
|
||||
|
|
|
@ -142,6 +142,13 @@ gfx::YUVColorSpace WebRenderTextureHost::GetYUVColorSpace() const {
|
|||
return gfx::YUVColorSpace::UNKNOWN;
|
||||
}
|
||||
|
||||
gfx::ColorRange WebRenderTextureHost::GetColorRange() const {
|
||||
if (mWrappedTextureHost) {
|
||||
return mWrappedTextureHost->GetColorRange();
|
||||
}
|
||||
return TextureHost::GetColorRange();
|
||||
}
|
||||
|
||||
gfx::IntSize WebRenderTextureHost::GetSize() const {
|
||||
if (!mWrappedTextureHost) {
|
||||
return gfx::IntSize();
|
||||
|
|
|
@ -52,6 +52,7 @@ class WebRenderTextureHost : public TextureHost {
|
|||
already_AddRefed<gfx::DataSourceSurface> GetAsSurface() override;
|
||||
|
||||
gfx::YUVColorSpace GetYUVColorSpace() const override;
|
||||
gfx::ColorRange GetColorRange() const override;
|
||||
|
||||
gfx::IntSize GetSize() const override;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче