diff options
Diffstat (limited to 'libs/hwui/renderstate/Blend.h')
-rw-r--r-- | libs/hwui/renderstate/Blend.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libs/hwui/renderstate/Blend.h b/libs/hwui/renderstate/Blend.h index 6d0c115..dcc681d 100644 --- a/libs/hwui/renderstate/Blend.h +++ b/libs/hwui/renderstate/Blend.h @@ -29,11 +29,18 @@ namespace uirenderer { class Blend { friend class RenderState; public: - void enable(SkXfermode::Mode mode, bool swapSrcDst); + // dictates whether to swap src/dst + enum class ModeOrderSwap { + NoSwap, + Swap, + }; + + void enable(SkXfermode::Mode mode, ModeOrderSwap modeUsage); void disable(); void syncEnabled(); - static void getFactors(SkXfermode::Mode mode, bool swapSrcDst, GLenum* outSrc, GLenum* outDst); + static void getFactors(SkXfermode::Mode mode, ModeOrderSwap modeUsage, + GLenum* outSrc, GLenum* outDst); void setFactors(GLenum src, GLenum dst); void dump(); |