From 01f2e9b0c01c283734e1d0fbababa10bd9bc7bfc Mon Sep 17 00:00:00 2001 From: Sotaro Ikeda Date: Tue, 16 Feb 2016 01:47:36 -0800 Subject: [PATCH] Bug 1248325 - Update BufferTextureHost::GetAsSurface() r=nical --- gfx/layers/composite/TextureHost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/layers/composite/TextureHost.cpp b/gfx/layers/composite/TextureHost.cpp index dcf9278717c8..1bde51fdf8b0 100644 --- a/gfx/layers/composite/TextureHost.cpp +++ b/gfx/layers/composite/TextureHost.cpp @@ -640,7 +640,7 @@ BufferTextureHost::GetAsSurface() return nullptr; } } else { - RefPtr surf = + result = gfx::Factory::CreateWrappingDataSourceSurface(GetBuffer(), ImageDataSerializer::GetRGBStride(mDescriptor.get_RGBDescriptor()), mSize, mFormat);