Skip to content

Commit e11c48f

Browse files
author
Andrew Wolfers
committed
Flag: Add flag for cursor plane behavior
This change adds a flag which is used to gate behavior changes to the cursor surface that allows it to be presented on the cursor plane. In subsequent CLs, when the cursor_plane_compatibility flag is set, Sprite surfaces will use BGRA pixel format, and will allocate buffers with the GRALLOC_USAGE_CURSOR flag. These modifications enable the requirements of the cursor plane to be met. Flag: com.android.graphics.libgui.flags.cursor_plane_compatibility Bug: 404877772 Change-Id: I0eee89a99f340af642fcf1de187f6e550ce99527
1 parent 09ae6bf commit e11c48f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

libs/gui/Android.bp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ cc_library_shared {
349349
"libsurfaceflingerflags",
350350
],
351351

352+
shared_libs: [
353+
"libaconfig_storage_read_api_cc",
354+
],
355+
352356
afdo: true,
353357

354358
lto: {

libs/gui/libgui_flags.aconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ flag {
2525
is_fixed_read_only: true
2626
} # bq_consumer_attach_callback
2727

28+
flag {
29+
name: "cursor_plane_compatibility"
30+
namespace: "desktop_display"
31+
description: "configure cursor surface to meet cursor plane buffer requirements"
32+
bug: "352067404"
33+
} # cursor_plane_compatibility
34+
2835
flag {
2936
name: "frametimestamps_previousrelease"
3037
namespace: "core_graphics"

0 commit comments

Comments
 (0)