diff options
Diffstat (limited to 'include/media/stagefright/NativeWindowWrapper.h')
-rw-r--r-- | include/media/stagefright/NativeWindowWrapper.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/media/stagefright/NativeWindowWrapper.h b/include/media/stagefright/NativeWindowWrapper.h index 97cc0ce..cfeec22 100644 --- a/include/media/stagefright/NativeWindowWrapper.h +++ b/include/media/stagefright/NativeWindowWrapper.h @@ -18,29 +18,29 @@ #define NATIVE_WINDOW_WRAPPER_H_ -#include <gui/SurfaceTextureClient.h> +#include <gui/Surface.h> namespace android { -// SurfaceTextureClient derives from ANativeWindow which derives from multiple +// Surface derives from ANativeWindow which derives from multiple // base classes, in order to carry it in AMessages, we'll temporarily wrap it // into a NativeWindowWrapper. struct NativeWindowWrapper : RefBase { NativeWindowWrapper( - const sp<SurfaceTextureClient> &surfaceTextureClient) : + const sp<Surface> &surfaceTextureClient) : mSurfaceTextureClient(surfaceTextureClient) { } sp<ANativeWindow> getNativeWindow() const { return mSurfaceTextureClient; } - sp<SurfaceTextureClient> getSurfaceTextureClient() const { + sp<Surface> getSurfaceTextureClient() const { return mSurfaceTextureClient; } private: - const sp<SurfaceTextureClient> mSurfaceTextureClient; + const sp<Surface> mSurfaceTextureClient; DISALLOW_EVIL_CONSTRUCTORS(NativeWindowWrapper); }; |