Skip to content

Commit

Permalink
gralloc: Correct the gralloc private usage bit setting.
Browse files Browse the repository at this point in the history
Change-Id: Ic0f085bfbf516f031776ebb740b3c4a11c7264db
  • Loading branch information
Gurpreet Singh Dhami authored and Gerrit - the friendly Code Review server committed May 18, 2018
1 parent e525c59 commit f8fb6b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gralloc/gralloc_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ inline int roundUpToPageSize(int x) {
/* Consumer flags */
/* TODO(user): Fix when producer and consumer flags are actually separated */
/* This flag is set for WFD usecase */
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_WFD 0x00200000
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_WFD (UINT32_C(1) << 21)

/* This flag is used for SECURE display usecase */
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY 0x02000000
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_SECURE_DISPLAY (UINT32_C(1) << 31)

/* Buffer content should be displayed on a primary display only */
#define GRALLOC1_CONSUMER_USAGE_PRIVATE_INTERNAL_ONLY 0x04000000
Expand Down

0 comments on commit f8fb6b3

Please sign in to comment.