summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayUtils.h
diff options
context:
space:
mode:
authorBaldev Sahu <bsahu@codeaurora.org>2015-08-12 16:25:05 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:22:26 -0600
commit3652b2386511917de05beefcbc4bf1521450a1bf (patch)
tree51d630fb1ea973078f4aca39620ad6ac5a659877 /services/surfaceflinger/DisplayUtils.h
parentbd170ee5b6f210cfa8db72d6bfbe0cff5ed08594 (diff)
downloadframeworks_native-3652b2386511917de05beefcbc4bf1521450a1bf.zip
frameworks_native-3652b2386511917de05beefcbc4bf1521450a1bf.tar.gz
frameworks_native-3652b2386511917de05beefcbc4bf1521450a1bf.tar.bz2
SurfaceFlinger: Add support for V4L2 based wfd solution.
This change add support for V4L2 based Wi-Fi display. Change-Id: Ib3f3868eb0b7fa2bf7e58246fb2c5cd0ddceb7e1
Diffstat (limited to 'services/surfaceflinger/DisplayUtils.h')
-rw-r--r--services/surfaceflinger/DisplayUtils.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/services/surfaceflinger/DisplayUtils.h b/services/surfaceflinger/DisplayUtils.h
index c35e36a..cdf2b67 100644
--- a/services/surfaceflinger/DisplayUtils.h
+++ b/services/surfaceflinger/DisplayUtils.h
@@ -56,14 +56,21 @@ class DisplayUtils {
uint32_t, uint32_t);
HWComposer* getHWCInstance(const sp<SurfaceFlinger>& flinger,
HWComposer::EventHandler& handler);
- VirtualDisplaySurface* getVDSInstance(HWComposer* hwc, int32_t hwcDisplayId,
- sp<IGraphicBufferProducer> currentStateSurface, sp<IGraphicBufferProducer> bqProducer,
+ void initVDSInstance(HWComposer* hwc, int32_t hwcDisplayId,
+ sp<IGraphicBufferProducer> currentStateSurface, sp<DisplaySurface> &dispSurface,
+ sp<IGraphicBufferProducer> &producer, sp<IGraphicBufferProducer> bqProducer,
sp<IGraphicBufferConsumer> bqConsumer, String8 currentStateDisplayName,
- bool currentStateIsSecure);
+ bool currentStateIsSecure, int currentStateType);
DisplayUtils();
private:
static DisplayUtils* sDisplayUtils;
static bool sUseExtendedImpls;
+
+ bool createV4L2BasedVirtualDisplay(HWComposer* hwc, int32_t &hwcDisplayId,
+ sp<DisplaySurface> &dispSurface, sp<IGraphicBufferProducer> &producer,
+ sp<IGraphicBufferProducer> currentStateSurface,
+ sp<IGraphicBufferProducer> bqProducer,
+ sp<IGraphicBufferConsumer> bqConsumer, int currentStateType);
};
}; // namespace android