[BeOS]Bug 283225. Using minimalistic syncing now. p=sergei_d, r=thesuckiestmail, BeOS-only

git-svn-id: svn://10.0.0.236/trunk@184550 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sergei_d%fi.tartu.ee 2005-11-13 20:29:03 +00:00
parent def9182fe6
commit 216a896477
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}

View File

@ -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;
}