Review comment from bug 596451 part C - the XSync is required so that pending composition using this surface is complete before the surface is re-used by the plugin.

This commit is contained in:
Benjamin Smedberg 2010-10-15 14:35:46 -04:00
parent 71106cd304
commit a2ace6a492

View File

@ -499,6 +499,12 @@ PluginInstanceParent::RecvShow(const NPRect& updatedRect,
mSentPaintNotification = PR_FALSE;
#ifdef MOZ_X11
if (mFrontSurface &&
mFrontSurface->GetType() == gfxASurface::SurfaceTypeXlib)
XSync(DefaultXDisplay(), False);
#endif
if (mFrontSurface && gfxSharedImageSurface::IsSharedImage(mFrontSurface))
*prevSurface = static_cast<gfxSharedImageSurface*>(mFrontSurface.get())->GetShmem();
else