DisplayDevice only needs ANativeWindow not SurfaceTextureClient

Change-Id: Ib5be5af8bede435c8d5d9fabf586d28d0e74c2cb
This commit is contained in:
Mathias Agopian 2012-08-04 21:39:11 -07:00
parent 888c822c4c
commit d8552d796c
2 changed files with 5 additions and 4 deletions

View File

@ -108,7 +108,7 @@ DisplayDevice::DisplayDevice()
DisplayDevice::DisplayDevice(
const sp<SurfaceFlinger>& flinger,
int display,
const sp<SurfaceTextureClient>& surface,
const sp<ANativeWindow>& surface,
EGLConfig config)
: mFlinger(flinger),
mId(display),

View File

@ -30,13 +30,14 @@
#include "Transform.h"
struct ANativeWindow;
namespace android {
class DisplayInfo;
class FramebufferSurface;
class LayerBase;
class SurfaceFlinger;
class SurfaceTextureClient;
class DisplayDevice
{
@ -63,7 +64,7 @@ public:
DisplayDevice(
const sp<SurfaceFlinger>& flinger,
int dpy,
const sp<SurfaceTextureClient>& surface,
const sp<ANativeWindow>& surface,
EGLConfig config);
~DisplayDevice();
@ -136,7 +137,7 @@ private:
int32_t mId;
// ANativeWindow this display is rendering into
sp<SurfaceTextureClient> mNativeWindow;
sp<ANativeWindow> mNativeWindow;
// set if mNativeWindow is a FramebufferSurface
sp<FramebufferSurface> mFramebufferSurface;