mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
b845eb1698
commit
4af1765061
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user