зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1543359 - P12. Fix colorspace rendering with IOSurface and basic compositor. r=mattwoodrow
It got missed in bug 1540581. Differential Revision: https://phabricator.services.mozilla.com/D27248 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
df451e4367
Коммит
3dfa052df3
|
@ -83,6 +83,9 @@ CreateSourceSurfaceFromLockedMacIOSurface(MacIOSurface* aSurface) {
|
|||
data.mCbCrStride = cbCrWidth;
|
||||
data.mCbCrSize = IntSize::Truncate(cbCrWidth, cbCrHeight);
|
||||
data.mPicSize = data.mYSize;
|
||||
data.mYUVColorSpace = aSurface->GetYUVColorSpace();
|
||||
data.mColorRange = aSurface->IsFullRange() ? gfx::ColorRange::FULL
|
||||
: gfx::ColorRange::LIMITED;
|
||||
|
||||
ConvertYCbCrToRGB(data, SurfaceFormat::B8G8R8X8,
|
||||
IntSize::Truncate(ioWidth, ioHeight), mappedSurface.mData,
|
||||
|
|
Загрузка…
Ссылка в новой задаче