From eb921fb7563933d92d2945a6a436fd9c2a90b103 Mon Sep 17 00:00:00 2001 From: "sergei_d%fi.tartu.ee" Date: Sun, 13 Nov 2005 20:29:03 +0000 Subject: [PATCH] [BeOS]Bug 283225. Using minimalistic syncing now. p=sergei_d, r=thesuckiestmail, BeOS-only --- gfx/src/beos/nsDrawingSurfaceBeOS.cpp | 6 ++---- gfx/src/beos/nsImageBeOS.cpp | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/src/beos/nsDrawingSurfaceBeOS.cpp b/gfx/src/beos/nsDrawingSurfaceBeOS.cpp index e2bd73ddf20..0067aaab24a 100644 --- a/gfx/src/beos/nsDrawingSurfaceBeOS.cpp +++ b/gfx/src/beos/nsDrawingSurfaceBeOS.cpp @@ -92,7 +92,8 @@ NS_IMETHODIMP nsDrawingSurfaceBeOS :: Lock(PRInt32 aX, PRInt32 aY, if (mBitmap && !mLocked) { - + if (mView) + mView->Sync(); if (mLockFlags & NS_LOCK_SURFACE_READ_ONLY) mBitmap->LockBits(); *aStride = mBitmap->BytesPerRow(); @@ -256,9 +257,6 @@ void nsDrawingSurfaceBeOS :: UnlockDrawable() { if (!mView) return; - - if (mBitmap) - mView->Sync(); else mView->UnlockLooper(); } diff --git a/gfx/src/beos/nsImageBeOS.cpp b/gfx/src/beos/nsImageBeOS.cpp index f999dc18b94..6f1ffa59b99 100644 --- a/gfx/src/beos/nsImageBeOS.cpp +++ b/gfx/src/beos/nsImageBeOS.cpp @@ -435,6 +435,7 @@ NS_IMETHODIMP nsImageBeOS::DrawTile(nsIRenderingContext &aContext, nsIDrawingSur // Flushing tile bitmap to proper area in drawable BView view->DrawBitmap(mTileBitmap, BPoint(aTileRect.x , aTileRect.y )); view->SetDrawingMode(B_OP_COPY); + view->Sync(); } ((nsRenderingContextBeOS&)aContext).UnlockView(); beosdrawing->ReleaseView(); @@ -474,6 +475,7 @@ nsresult nsImageBeOS::Optimize(nsIDeviceContext *aContext) // the BeOS port or not. BBitmap::Lock/UnlockBits() may be used if necessary NS_IMETHODIMP nsImageBeOS::LockImagePixels(PRBool aMaskPixels) { + // we may need some sort of syncing here in future return NS_OK; }