DisplayDevice only needs ANativeWindow not SurfaceTextureClient
Change-Id: Ib5be5af8bede435c8d5d9fabf586d28d0e74c2cb
This commit is contained in:
parent
888c822c4c
commit
d8552d796c
@ -108,7 +108,7 @@ DisplayDevice::DisplayDevice()
|
|||||||
DisplayDevice::DisplayDevice(
|
DisplayDevice::DisplayDevice(
|
||||||
const sp<SurfaceFlinger>& flinger,
|
const sp<SurfaceFlinger>& flinger,
|
||||||
int display,
|
int display,
|
||||||
const sp<SurfaceTextureClient>& surface,
|
const sp<ANativeWindow>& surface,
|
||||||
EGLConfig config)
|
EGLConfig config)
|
||||||
: mFlinger(flinger),
|
: mFlinger(flinger),
|
||||||
mId(display),
|
mId(display),
|
||||||
|
@ -30,13 +30,14 @@
|
|||||||
|
|
||||||
#include "Transform.h"
|
#include "Transform.h"
|
||||||
|
|
||||||
|
struct ANativeWindow;
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
class DisplayInfo;
|
class DisplayInfo;
|
||||||
class FramebufferSurface;
|
class FramebufferSurface;
|
||||||
class LayerBase;
|
class LayerBase;
|
||||||
class SurfaceFlinger;
|
class SurfaceFlinger;
|
||||||
class SurfaceTextureClient;
|
|
||||||
|
|
||||||
class DisplayDevice
|
class DisplayDevice
|
||||||
{
|
{
|
||||||
@ -63,7 +64,7 @@ public:
|
|||||||
DisplayDevice(
|
DisplayDevice(
|
||||||
const sp<SurfaceFlinger>& flinger,
|
const sp<SurfaceFlinger>& flinger,
|
||||||
int dpy,
|
int dpy,
|
||||||
const sp<SurfaceTextureClient>& surface,
|
const sp<ANativeWindow>& surface,
|
||||||
EGLConfig config);
|
EGLConfig config);
|
||||||
|
|
||||||
~DisplayDevice();
|
~DisplayDevice();
|
||||||
@ -136,7 +137,7 @@ private:
|
|||||||
int32_t mId;
|
int32_t mId;
|
||||||
|
|
||||||
// ANativeWindow this display is rendering into
|
// ANativeWindow this display is rendering into
|
||||||
sp<SurfaceTextureClient> mNativeWindow;
|
sp<ANativeWindow> mNativeWindow;
|
||||||
|
|
||||||
// set if mNativeWindow is a FramebufferSurface
|
// set if mNativeWindow is a FramebufferSurface
|
||||||
sp<FramebufferSurface> mFramebufferSurface;
|
sp<FramebufferSurface> mFramebufferSurface;
|
||||||
|
Loading…
Reference in New Issue
Block a user