Revert "Revert "RenderScript should not depend on libsurfaceflinger_client.so""
This reverts commit a0659aa36c987e28e29778bd97e75fe52152c60e.
diff --git a/rsContext.cpp b/rsContext.cpp
index 2a0ccfb..e94aece 100644
--- a/rsContext.cpp
+++ b/rsContext.cpp
@@ -19,7 +19,7 @@
#include "rsThreadIO.h"
#include <ui/FramebufferNativeWindow.h>
#include <ui/EGLUtils.h>
-#include <surfaceflinger/Surface.h>
+#include <ui/egl/android_natives.h>
#include <sys/types.h>
#include <sys/resource.h>
@@ -461,7 +461,7 @@
objDestroyOOBDestroy();
}
-void Context::setSurface(uint32_t w, uint32_t h, Surface *sur)
+void Context::setSurface(uint32_t w, uint32_t h, android_native_window_t *sur)
{
rsAssert(mIsGraphicsContext);
@@ -859,7 +859,7 @@
void rsi_ContextSetSurface(Context *rsc, uint32_t w, uint32_t h, void *sur)
{
- rsc->setSurface(w, h, (Surface *)sur);
+ rsc->setSurface(w, h, (android_native_window_t *)sur);
}
void rsi_ContextSetPriority(Context *rsc, int32_t p)