diff options
author | Romain Guy <romainguy@google.com> | 2010-09-09 14:42:43 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-09-09 14:42:43 -0700 |
commit | a5aed0d58962a24c44728ffc46dc9e1ba2f9fda5 (patch) | |
tree | 4194d14711b2cba0e8192e5f1c0764f530bc7309 /libs/hwui/OpenGLRenderer.h | |
parent | d90f23e24a4d1768d5a7ed0e7072e67af6330a45 (diff) | |
download | frameworks_base-a5aed0d58962a24c44728ffc46dc9e1ba2f9fda5.zip frameworks_base-a5aed0d58962a24c44728ffc46dc9e1ba2f9fda5.tar.gz frameworks_base-a5aed0d58962a24c44728ffc46dc9e1ba2f9fda5.tar.bz2 |
Add support for advanced blend modes with the framebuffer.
This adds the ability to blend with the framebuffer using Darken,
Lighten, Add, Multiply, Overlay and Screen.
Change-Id: Iae01a53797d4ad39c373cba6ff2a42293129da1a
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rw-r--r-- | libs/hwui/OpenGLRenderer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 0e90d20..50f42c2 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -322,7 +322,9 @@ private: * Enable or disable blending as necessary. This function sets the appropriate * blend function based on the specified xfermode. */ - inline void chooseBlending(bool blend, SkXfermode::Mode mode, bool isPremultiplied = true); + inline void chooseBlending(bool blend, SkXfermode::Mode mode, ProgramDescription& description); + + inline SkXfermode::Mode getXfermode(SkXfermode* mode); /** * Use the specified program with the current GL context. If the program is already |