Part of the fix for 20743, add flag to tell us if a drawing surface is short-lived, so we can allocate in temp mem (on Mac). r=pavlov

This commit is contained in:
sfraser%netscape.com 2000-09-13 07:02:30 +00:00
parent b845eb1698
commit 4af1765061
3 changed files with 7 additions and 2 deletions

View File

@ -140,6 +140,11 @@ public:
//nsIBlender implementations.
#define NS_CREATEDRAWINGSURFACE_FOR_PIXEL_ACCESS 0x0001
//flag to say that this drawing surface is shortlived,
//which may affect how the OS allocates it. Used for
//tiling, grouting etc.
#define NS_CREATEDRAWINGSURFACE_SHORTLIVED 0x0002
//when locking a drawing surface, use these flags to
//control how the data in the surface should be accessed
#define NS_LOCK_SURFACE_READ_ONLY 0x0001

View File

@ -2375,7 +2375,7 @@ nsCSSRendering::PaintBackground(nsIPresContext* aPresContext,
nsRect srcRect,destRect,vrect,tvrect;
nscoord x,y;
PRInt32 flag = NS_COPYBITS_TO_BACK_BUFFER | NS_COPYBITS_XFORM_DEST_VALUES;
PRUint32 dsFlag = 0;
PRUint32 dsFlag = NS_CREATEDRAWINGSURFACE_SHORTLIVED;
float t2p,app2dev;
PRBool clip,hasMask;
nsTransform2D *theTransform;

View File

@ -2375,7 +2375,7 @@ nsCSSRendering::PaintBackground(nsIPresContext* aPresContext,
nsRect srcRect,destRect,vrect,tvrect;
nscoord x,y;
PRInt32 flag = NS_COPYBITS_TO_BACK_BUFFER | NS_COPYBITS_XFORM_DEST_VALUES;
PRUint32 dsFlag = 0;
PRUint32 dsFlag = NS_CREATEDRAWINGSURFACE_SHORTLIVED;
float t2p,app2dev;
PRBool clip,hasMask;
nsTransform2D *theTransform;