emulator: opengl: Use QEMU pipe.

This patch modifies the guest libraries to use the new
fast qemu "opengles" pipe to communicate with the host
renderer process.

Note that the renderer is still listening on a TCP socket
on port 22468.

Change-Id: I6ab84f972a8024e1fdababa4615d0650c8d461bf

Conflicts:

	tools/emulator/opengl/tests/gles_android_wrapper/Android.mk
	tools/emulator/opengl/tests/gles_android_wrapper/ServerConnection.h
This commit is contained in:
David 'Digit' Turner
2011-05-03 16:21:12 +02:00
parent 7b73c9f1d3
commit 892a6306e7
10 changed files with 317 additions and 36 deletions

View File

@@ -134,7 +134,7 @@ int TcpStream::writeFully(const void *buf, size_t len)
if (stat < 0) {
if (errno != EINTR) {
retval = stat;
ERR("TcpStream::writeFully failed, errno = %d\n", errno);
ERR("TcpStream::writeFully failed: %s\n", strerror(errno));
break;
}
} else {
@@ -161,7 +161,7 @@ const unsigned char *TcpStream::readFully(void *buf, size_t len)
if (errno == EINTR) {
continue;
} else {
ERR("TcpStream::readFully failed, errno = %d 0x%x \n", errno,buf);
ERR("TcpStream::readFully failed (buf 0x%x): %s\n", buf, strerror(errno));
return NULL;
}
} else {