summaryrefslogtreecommitdiff
path: root/libs/rs/rsContext.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-02-11 15:24:01 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-02-11 15:24:01 -0800
commit111c178bc46fa2c61027bc3870a2c8c442936821 (patch)
tree32617c8ad15a0d32476e7097645cec1c21183af1 /libs/rs/rsContext.cpp
parent7356b0b0661f61a161ac6771e4325ad5f687cb2e (diff)
parent88b55fb090ace1a835f890758866f42f03795c12 (diff)
Merge "RenderScript should not depend on libsurfaceflinger_client.so"
Diffstat (limited to 'libs/rs/rsContext.cpp')
-rw-r--r--libs/rs/rsContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index 2a0ccfb7d65e..e94aece2ed59 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/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 @@ Context::~Context()
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_ContextResume(Context *rsc)
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)