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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user