Bug 1493898 - P6. Move YUVColorSpace definition in the gfx namespace. r=mattwoodrow.

YUVColorSpace is inseparable from the bit depth as the matrix coefficients to be calculated need the bit depth information.

So let's put the two types together. gfx namespace also makes more sense as that's where we find IntRect, IntSize and other.

The extent of the changes highlight how much similar data structures are duplicated across the code, to the point it's scary.

Differential Revision: https://phabricator.services.mozilla.com/D25347
This commit is contained in:
Jean-Yves Avenard
2019-04-11 12:41:33 +00:00
parent e823935729
commit 3fd6d1b0ab
41 changed files with 111 additions and 108 deletions

View File

@@ -69,11 +69,11 @@ void GPUVideoTextureHost::SetTextureSourceProvider(
}
}
YUVColorSpace GPUVideoTextureHost::GetYUVColorSpace() const {
gfx::YUVColorSpace GPUVideoTextureHost::GetYUVColorSpace() const {
if (mWrappedTextureHost) {
return mWrappedTextureHost->GetYUVColorSpace();
}
return YUVColorSpace::UNKNOWN;
return gfx::YUVColorSpace::UNKNOWN;
}
gfx::IntSize GPUVideoTextureHost::GetSize() const {