OSDN Git Service

libgui_test: fix a couple minor test issues
authorJamie Gennis <jgennis@google.com>
Tue, 23 Apr 2013 22:00:45 +0000 (15:00 -0700)
committerJamie Gennis <jgennis@google.com>
Wed, 24 Apr 2013 01:08:02 +0000 (01:08 +0000)
commitea2d942ddaea11ca5f136e27e0ab8bcd72bb0644
treef6e3bea83d73664e67fe4855c94cad666177f25a
parente692ab9a6be63193c5b52a6562d85d06c40463b8
libgui_test: fix a couple minor test issues

This change fixes how the MultiTextureConsumerTest.EGLImageTargetWorks checks
for pixels.  It removes the call to eglSwapBuffers so that the test does not
rely on EGL swap-preserve behavior, and it makes the test use checkPixel()
rather than doing glReadPixels itself.

Bug: 8349336
Change-Id: I0f446a0083eebd07af6fd208762878b4e367725a
libs/gui/tests/SurfaceTexture_test.cpp