egl: android: query native window default width and height (v2)
authorHaixia Shi <hshi@chromium.org>
Thu, 28 Jul 2016 17:51:12 +0000 (10:51 -0700)
committerChad Versace <chad@kiwitree.net>
Tue, 9 Aug 2016 22:49:28 +0000 (15:49 -0700)
commita7c6993a33e894556e45fc2882ad19f34274d689
tree48058437e33ffe24da22e26c17df21a593a1559c
parentc4cd0e8ecd6ab9fc427d26ba7a9a360590291d24
egl: android: query native window default width and height (v2)

On android platform, the width and height of a native window surface may
be updated after initialization. It is therefore necessary to query android
framework for the current width and height.

v2: remove Android specific #ifdef's and just implement the fallback directly
if the platform query_surface() callback is not provided.

TEST=dEQP-EGL.functional.resize.surface_size#* on cyan-cheets

Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org> (v1)
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Chad Versace <chad@kiwitree.net>
Change-Id: I673f7d2f1d90c3bf572b30f63da537f2cae1496e
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_android.c