From 7981f6dc015a6ca27f6a8d46cb975433406aa61a Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Fri, 13 Apr 2018 00:13:41 -0400 Subject: [PATCH] Bug 1444432 - Add missing gfx:: qualifiers in TextureClientOGL.cpp. r=jrmuizel MozReview-Commit-ID: BT33ief5qkt --HG-- extra : rebase_source : 7709a9d125198880bf7765ef5a4d32ac6ca9e305 --- gfx/layers/opengl/TextureClientOGL.cpp | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/gfx/layers/opengl/TextureClientOGL.cpp b/gfx/layers/opengl/TextureClientOGL.cpp index 97de8171205a..a8bcbcfeacdd 100644 --- a/gfx/layers/opengl/TextureClientOGL.cpp +++ b/gfx/layers/opengl/TextureClientOGL.cpp @@ -91,13 +91,13 @@ AndroidSurfaceTextureData::Serialize(SurfaceDescriptor& aOutDescriptor) AndroidNativeWindowTextureData* AndroidNativeWindowTextureData::Create(gfx::IntSize aSize, - SurfaceFormat aFormat) + gfx::SurfaceFormat aFormat) { - if (aFormat != SurfaceFormat::R8G8B8A8 && - aFormat != SurfaceFormat::R8G8B8X8 && - aFormat != SurfaceFormat::B8G8R8A8 && - aFormat != SurfaceFormat::B8G8R8X8 && - aFormat != SurfaceFormat::R5G6B5_UINT16) { + if (aFormat != gfx::SurfaceFormat::R8G8B8A8 && + aFormat != gfx::SurfaceFormat::R8G8B8X8 && + aFormat != gfx::SurfaceFormat::B8G8R8A8 && + aFormat != gfx::SurfaceFormat::B8G8R8X8 && + aFormat != gfx::SurfaceFormat::R5G6B5_UINT16) { return nullptr; } @@ -113,7 +113,7 @@ AndroidNativeWindowTextureData::Create(gfx::IntSize aSize, AndroidNativeWindowTextureData::AndroidNativeWindowTextureData(java::GeckoSurface::Param aSurface, gfx::IntSize aSize, - SurfaceFormat aFormat) + gfx::SurfaceFormat aFormat) : mSurface(aSurface) , mIsLocked(false) , mSize(aSize) @@ -126,17 +126,17 @@ AndroidNativeWindowTextureData::AndroidNativeWindowTextureData(java::GeckoSurfac // SurfaceTextures don't technically support BGR, but we can just pretend to be RGB. int32_t format = WINDOW_FORMAT_RGBA_8888; switch (aFormat) { - case SurfaceFormat::R8G8B8A8: - case SurfaceFormat::B8G8R8A8: + case gfx::SurfaceFormat::R8G8B8A8: + case gfx::SurfaceFormat::B8G8R8A8: format = WINDOW_FORMAT_RGBA_8888; break; - case SurfaceFormat::R8G8B8X8: - case SurfaceFormat::B8G8R8X8: + case gfx::SurfaceFormat::R8G8B8X8: + case gfx::SurfaceFormat::B8G8R8X8: format = WINDOW_FORMAT_RGBX_8888; break; - case SurfaceFormat::R5G6B5_UINT16: + case gfx::SurfaceFormat::R5G6B5_UINT16: format = WINDOW_FORMAT_RGB_565; break; @@ -213,15 +213,15 @@ AndroidNativeWindowTextureData::Forget(LayersIPCChannel*) mSurface = nullptr; } -already_AddRefed +already_AddRefed AndroidNativeWindowTextureData::BorrowDrawTarget() { - const int bpp = (mFormat == SurfaceFormat::R5G6B5_UINT16) ? 2 : 4; + const int bpp = (mFormat == gfx::SurfaceFormat::R5G6B5_UINT16) ? 2 : 4; return gfx::Factory::CreateDrawTargetForData( gfx::BackendType::SKIA, static_cast(mBuffer.bits), - IntSize(mBuffer.width, mBuffer.height), + gfx::IntSize(mBuffer.width, mBuffer.height), mBuffer.stride * bpp, mFormat, true);