Bug 1543359 - P10. Add color range info to GPU and WR texture host. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D27243
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user