Remove synchronization around `damageRegion'
* java/org/gnu/emacs/EmacsView.java (EmacsView, swapBuffers): Remove unnecessary documentation. `damageRegion' is only changed from the Emacs thread.
This commit is contained in:
parent
cdca0fddcc
commit
d33bf0a0af
1 changed files with 10 additions and 16 deletions
|
@ -338,10 +338,7 @@ else if (child.getVisibility () != GONE)
|
|||
public void
|
||||
damageRect (Rect damageRect)
|
||||
{
|
||||
synchronized (damageRegion)
|
||||
{
|
||||
damageRegion.union (damageRect);
|
||||
}
|
||||
damageRegion.union (damageRect);
|
||||
}
|
||||
|
||||
/* This method is called from both the UI thread and the Emacs
|
||||
|
@ -358,22 +355,19 @@ else if (child.getVisibility () != GONE)
|
|||
|
||||
/* Now see if there is a damage region. */
|
||||
|
||||
synchronized (damageRegion)
|
||||
{
|
||||
if (damageRegion.isEmpty ())
|
||||
return;
|
||||
if (damageRegion.isEmpty ())
|
||||
return;
|
||||
|
||||
/* And extract and clear the damage region. */
|
||||
/* And extract and clear the damage region. */
|
||||
|
||||
damageRect = damageRegion.getBounds ();
|
||||
damageRegion.setEmpty ();
|
||||
damageRect = damageRegion.getBounds ();
|
||||
damageRegion.setEmpty ();
|
||||
|
||||
bitmap = getBitmap ();
|
||||
bitmap = getBitmap ();
|
||||
|
||||
/* Transfer the bitmap to the surface view, then invalidate
|
||||
it. */
|
||||
surfaceView.setBitmap (bitmap, damageRect);
|
||||
}
|
||||
/* Transfer the bitmap to the surface view, then invalidate
|
||||
it. */
|
||||
surfaceView.setBitmap (bitmap, damageRect);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue