OSDN Git Service

Revert "Fix the position of qemu_pipe header"
authorChristopher Ferris <cferris@google.com>
Sat, 22 Oct 2016 04:54:29 +0000 (04:54 +0000)
committerYahan Zhou <yahan@google.com>
Wed, 30 Nov 2016 01:43:46 +0000 (01:43 +0000)
This change should not have made it into master.

This reverts commit 3855dfbf428269d3c79dd7ba4b257ec5e9b917ff.

Test: Built full-eng, mmma -j30 device/generic/goldfish-opengl.

Change-Id: I4bffeae147464a7a158e0daa95155d87d0a9677b
(cherry picked from commit 2e11850e11ad1b8a548176a5dc8c223f252227d9)

system/OpenglSystemCommon/ProcessPipe.cpp
system/OpenglSystemCommon/QemuPipeStream.cpp

index b13487b..e638236 100644 (file)
 
 #include <cutils/log.h>
 #include <pthread.h>
+#if PLATFORM_SDK_VERSION > 24
+#include <system/qemu_pipe.h>
+#else // PLATFORM_SDK_VERSION
 #include <hardware/qemu_pipe.h>
+#endif //PLATFORM_SDK_VERSION
 
 static int                sProcPipe = 0;
 static pthread_once_t     sProcPipeOnce = PTHREAD_ONCE_INIT;
index 3804097..de9f3af 100644 (file)
 * limitations under the License.
 */
 #include "QemuPipeStream.h"
+#if PLATFORM_SDK_VERSION > 24
+#include <system/qemu_pipe.h>
+#else // PLATFORM_SDK_VERSION
 #include <hardware/qemu_pipe.h>
+#endif //PLATFORM_SDK_VERSION
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -51,7 +55,11 @@ QemuPipeStream::~QemuPipeStream()
 
 int QemuPipeStream::connect(void)
 {
+#if PLATFORM_SDK_VERSION > 24
+     m_sock = qemu_pipe_open("pipe:opengles");
+#else // PLATFORM_SDK_VERSION
      m_sock = qemu_pipe_open("opengles");
+#endif // PLATFORM_SDK_VERSION
     if (!valid()) return -1;
     return 0;
 }