update renderscript to master_gl APIs
diff --git a/libs/rs/jni/RenderScript_jni.cpp b/libs/rs/jni/RenderScript_jni.cpp
index ab17a4a..dcf3850 100644
--- a/libs/rs/jni/RenderScript_jni.cpp
+++ b/libs/rs/jni/RenderScript_jni.cpp
@@ -23,7 +23,6 @@
#include <utils/misc.h>
#include <utils/Log.h>
-#include <ui/EGLNativeWindowSurface.h>
#include <ui/Surface.h>
#include <core/SkBitmap.h>
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index 7c46c0e..455c18d 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -18,6 +18,7 @@
#include "rsContext.h"
#include "rsThreadIO.h"
#include "utils/String8.h"
+#include <ui/FramebufferNativeWindow.h>
using namespace android;
using namespace android::renderscript;
@@ -43,8 +44,7 @@
eglChooseConfig(mDisplay, s_configAttribs, &mConfig, 1, &mNumConfigs);
if (mWndSurface) {
- mSurface = eglCreateWindowSurface(mDisplay, mConfig,
- new EGLNativeWindowSurface(mWndSurface),
+ mSurface = eglCreateWindowSurface(mDisplay, mConfig, mWndSurface,
NULL);
} else {
mSurface = eglCreateWindowSurface(mDisplay, mConfig,
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h
index 334ef3c..e9d75e0 100644
--- a/libs/rs/rsContext.h
+++ b/libs/rs/rsContext.h
@@ -18,7 +18,6 @@
#define ANDROID_RS_CONTEXT_H
#include <utils/Vector.h>
-#include <ui/EGLNativeWindowSurface.h>
#include <ui/Surface.h>
#include "rsType.h"