summaryrefslogtreecommitdiffstats
path: root/rs
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2015-07-20 15:05:31 -0700
committerMiao Wang <miaowang@google.com>2015-07-20 16:04:59 -0700
commitffb1a9bed0788d3547f085bfb9d254004e0db1e3 (patch)
tree944dcc97663b9ce7daffd315f48bcc7d6451026f /rs
parent5ff4383b466fc26e6696a7bbeb6df5eb7a3c8cc5 (diff)
downloadframeworks_base-ffb1a9bed0788d3547f085bfb9d254004e0db1e3.zip
frameworks_base-ffb1a9bed0788d3547f085bfb9d254004e0db1e3.tar.gz
frameworks_base-ffb1a9bed0788d3547f085bfb9d254004e0db1e3.tar.bz2
[RenderScript] Add docs advising users about dstAtop bug.
Bug: 22047392 Change-Id: I736a697276020687c20dff515aabb1be1776f8c0
Diffstat (limited to 'rs')
-rw-r--r--rs/java/android/renderscript/ScriptIntrinsicBlend.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/rs/java/android/renderscript/ScriptIntrinsicBlend.java b/rs/java/android/renderscript/ScriptIntrinsicBlend.java
index 906e0f6..6b09bb7 100644
--- a/rs/java/android/renderscript/ScriptIntrinsicBlend.java
+++ b/rs/java/android/renderscript/ScriptIntrinsicBlend.java
@@ -360,6 +360,8 @@ public class ScriptIntrinsicBlend extends ScriptIntrinsic {
/**
* dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb
* dst.a = src.a
+ * Note: Before API 23, the alpha channel was not correctly set.
+ * Please use with caution when targeting older APIs.
*
* @param ain The source buffer
* @param aout The destination buffer
@@ -371,6 +373,8 @@ public class ScriptIntrinsicBlend extends ScriptIntrinsic {
/**
* dst = dst.rgb * src.a + (1.0 - dst.a) * src.rgb
* dst.a = src.a
+ * Note: Before API 23, the alpha channel was not correctly set.
+ * Please use with caution when targeting older APIs.
*
* @param ain The source buffer
* @param aout The destination buffer