Bug 959120 - Moz2Dify AutoLockImage contructor. r=nical

Changed the AutoLockImage constructor to take a SourceSurface
instead of a gfxASurface
This commit is contained in:
Ali Akhtarzada
2014-02-12 10:24:21 -05:00
parent fd64d054e8
commit 9512a02fa7
3 changed files with 8 additions and 8 deletions

View File

@@ -105,8 +105,8 @@ protected:
return mImageClientTypeContainer;
}
nsRefPtr<gfxASurface> surface;
AutoLockImage autoLock(mContainer, getter_AddRefs(surface));
RefPtr<gfx::SourceSurface> surface;
AutoLockImage autoLock(mContainer, &surface);
mImageClientTypeContainer = autoLock.GetImage() ?
BUFFER_IMAGE_SINGLE : BUFFER_UNKNOWN;