egl/android: set window usage flags
authorDavid Stevens <stevensd@chromium.org>
Thu, 5 Mar 2020 03:52:38 +0000 (12:52 +0900)
committerDavid Stevens <stevensd@chromium.org>
Thu, 12 Mar 2020 02:03:32 +0000 (11:03 +0900)
commit31c420565c713a0398c7b872119acaf4f8dc3978
treec06288db93001c1a95dad9411018fae42a8b92c1
parentcf5ba9d409bcae3496d094def5c3b199a8847b3c
egl/android: set window usage flags

When creating an egl surface from an ANativeWindow, the window's usage
flags need to be set so that buffers are allocated properly.

Signed-off-by: David Stevens <stevensd@chromium.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lepton Wu <lepton@chromium.org>
src/egl/drivers/dri2/platform_android.c