summaryrefslogtreecommitdiff
path: root/include/android
diff options
context:
space:
mode:
author Valerie Hau <vhau@google.com> 2019-01-24 04:10:46 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-01-24 04:10:46 +0000
commit7b9c88784d77477f4c407fff09f851fe5e702d7d (patch)
tree2a87dd06b7ae75afae4cdea7f11ce7db31c80915 /include/android
parent3c252c2c31297165de0ff15f753f77bedeee441b (diff)
parented54efa6e3d6b1403d07e0b68e0e741ec4d26cc4 (diff)
Merge "Add Color Layer to ASurfaceControl"
Diffstat (limited to 'include/android')
-rw-r--r--include/android/surface_control.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/android/surface_control.h b/include/android/surface_control.h
index 430f81be56..05731871d9 100644
--- a/include/android/surface_control.h
+++ b/include/android/surface_control.h
@@ -241,6 +241,17 @@ void ASurfaceTransaction_setBuffer(ASurfaceTransaction* transaction,
int acquire_fence_fd = -1) __INTRODUCED_IN(29);
/**
+ * Updates the color for |surface_control|. This will make the background color for the
+ * ASurfaceControl visible in transparent regions of the surface. Colors |r|, |g|,
+ * and |b| must be within the range that is valid for |dataspace|. |dataspace| and |alpha|
+ * will be the dataspace and alpha set for the background color layer.
+ */
+void ASurfaceTransaction_setColor(ASurfaceTransaction* transaction,
+ ASurfaceControl* surface_control, float r, float g, float b,
+ float alpha, ADataSpace dataspace)
+ __INTRODUCED_IN(29);
+
+/**
* |source| the sub-rect within the buffer's content to be rendered inside the surface's area
* The surface's source rect is clipped by the bounds of its current buffer. The source rect's width
* and height must be > 0.