diff options
author | Rob Tsuk <robtsuk@google.com> | 2014-11-11 15:44:13 -0800 |
---|---|---|
committer | Rob Tsuk <robtsuk@google.com> | 2014-11-12 12:25:24 -0800 |
commit | 4678dcc5524258908eadc5fe1e5e1874768967eb (patch) | |
tree | 3f1ca293c68326003fef888ef70c57075c885fe9 /graphics | |
parent | 82aaf332b62c5a276c4046d1339441d68d817371 (diff) | |
download | frameworks_base-4678dcc5524258908eadc5fe1e5e1874768967eb.zip frameworks_base-4678dcc5524258908eadc5fe1e5e1874768967eb.tar.gz frameworks_base-4678dcc5524258908eadc5fe1e5e1874768967eb.tar.bz2 |
Add a way to override Xfermode DO NOT MERGE
Add a non-public API to Canvas/GLES20Canvas to provide a way to draw
the touch ripple animation without using a save layer.
Change-Id: I6e2095adffe515194f669fb75bb67abf813bd518
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Canvas.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java index f45c0cb..6baf1aa 100644 --- a/graphics/java/android/graphics/Canvas.java +++ b/graphics/java/android/graphics/Canvas.java @@ -250,6 +250,15 @@ public class Canvas { public void insertInorderBarrier() {} /** + * Set a transfer mode that overrides any transfer modes + * in paints used for drawing. Pass null to disable this + * override. Only implemented in GLES20Canvas. + * + * @hide + */ + public void setOverrideXfermode(@Nullable PorterDuff.Mode xfermode) {} + + /** * Return true if the device that the current layer draws into is opaque * (i.e. does not support per-pixel alpha). * |