summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorValerie Hau <vhau@google.com>2019-01-11 20:03:14 -0800
committerValerie Hau <vhau@google.com>2019-01-23 13:42:58 -0800
commited54efa6e3d6b1403d07e0b68e0e741ec4d26cc4 (patch)
tree0807c81407557ad04a86c9dd59e3de0ab9f90cbd /include
parent57d7b5f37d6f5f94385e674fc27dcca4a9579499 (diff)
downloadandroid_frameworks_native-ed54efa6e3d6b1403d07e0b68e0e741ec4d26cc4.tar.gz
android_frameworks_native-ed54efa6e3d6b1403d07e0b68e0e741ec4d26cc4.tar.bz2
android_frameworks_native-ed54efa6e3d6b1403d07e0b68e0e741ec4d26cc4.zip
Add Color Layer to ASurfaceControl
Bug:122326454 Test: atest CtsViewTestCases:android.view.cts.ASurfaceControlTests Change-Id: Ib05ad70d838c79aa6f2e309217b93906c950b6fa
Diffstat (limited to 'include')
-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 430f81be5..05731871d 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.