зеркало из https://github.com/mozilla/pjs.git
[BeOS]Bug 283225. Using minimalistic syncing now. p=sergei_d, r=thesuckiestmail, BeOS-only
This commit is contained in:
Родитель
77715c437a
Коммит
eb921fb756
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче