diff --git a/gfx/layers/basic/BasicCompositor.cpp b/gfx/layers/basic/BasicCompositor.cpp index 2200776506df..a263b055377b 100644 --- a/gfx/layers/basic/BasicCompositor.cpp +++ b/gfx/layers/basic/BasicCompositor.cpp @@ -115,10 +115,10 @@ protected: { EnsureSurface(); if (!mSurface) { - mSurface = mCompositor->GetDrawTarget()->CreateSourceSurfaceFromData(mThebesImage->Data(), - mSize, - mThebesImage->Stride(), - mFormat); + mSurface = Factory::CreateWrappingDataSourceSurface(mThebesImage->Data(), + mThebesImage->Stride(), + mSize, + mFormat); } return true; }