Bug 1082518 - Get rid of some unused gfxContext flags. r=Bas

This commit is contained in:
Jonathan Watt 2014-10-16 10:51:13 +01:00
parent f348571ae8
commit 37744b9d6c

View File

@ -517,10 +517,6 @@ public:
* how drawing something will modify the destination. For example, the
* OVER operator will do alpha blending of source and destination, while
* SOURCE will replace the destination with the source.
*
* Note that if the flag FLAG_SIMPLIFY_OPERATORS is set on this
* gfxContext, the actual operator set might change for optimization
* purposes. Check the comments below around that flag.
*/
void SetOperator(GraphicsOperator op);
GraphicsOperator CurrentOperator() const;
@ -593,32 +589,12 @@ public:
mozilla::gfx::Point GetDeviceOffset() const;
/**
** Flags
**/
enum {
/* If this flag is set, operators other than CLEAR, SOURCE, or
* OVER will be converted to OVER before being sent to cairo.
*
* This is most useful with a printing surface, where
* operators such as ADD are used to avoid seams for on-screen
* display, but where such errors aren't noticeable in print.
* This approach is currently used in border rendering.
*
* However, when printing complex renderings such as SVG,
* care should be taken to clear this flag.
*/
FLAG_SIMPLIFY_OPERATORS = (1 << 0),
/**
/**
* When this flag is set, snapping to device pixels is disabled.
* It simply never does anything.
*/
FLAG_DISABLE_SNAPPING = (1 << 1),
/**
* Disable copying of backgrounds in PushGroupAndCopyBackground.
*/
FLAG_DISABLE_COPY_BACKGROUND = (1 << 2)
};
void SetFlag(int32_t aFlag) { mFlags |= aFlag; }