gpu/khronos_glcts_support: override Surface getWidth/Height
commitfbba679b43d6df314321543541dfce39789593b4
authorullysses.a.eoff <ullysses.a.eoff@intel.com>
Thu, 9 Oct 2014 04:36:39 +0000 (8 21:36 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 9 Oct 2014 04:36:48 +0000 (9 04:36 +0000)
tree4a4ac6e3464df7945e21d262502438fc1605709f
parent75a8773ddb966da100bcef7301578205c54cb12a
gpu/khronos_glcts_support: override Surface getWidth/Height

The GL-CTS default Surface getWidth/Height implementation calls
eglQuerySurface() to retrieve the surface's size and uses this
information to create it's tcuRenderTarget object.  However, we
don't implement the eglQuerySurface() and thus the tcuRenderTarget
gets the wrong surface size.  This resulted in several test
failures.

Add our own derived Surface class and override the getWidth/Height
methods to return the correct size.

BUG=chromium:412865
R=kbr@chromium.org, piman@chromium.org
TEST=Build and run the khronos_glcts_test binary

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Review URL: https://codereview.chromium.org/634323002

Cr-Commit-Position: refs/heads/master@{#298766}
gpu/khronos_glcts_support/native/egl_native_windowless.cc