summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayUtils.h
diff options
context:
space:
mode:
authorManoj Kumar AVM <manojavm@codeaurora.org>2015-10-02 14:53:50 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-11-02 08:15:21 -0800
commitf8ea9b579653756d5adb1f0f09cec41857923ae8 (patch)
tree8a4f886c433734640c801a1eac2143b5766118f4 /services/surfaceflinger/DisplayUtils.h
parent81c57b314972b8f15e450b71fbafa1c826e914a2 (diff)
downloadframeworks_native-f8ea9b579653756d5adb1f0f09cec41857923ae8.zip
frameworks_native-f8ea9b579653756d5adb1f0f09cec41857923ae8.tar.gz
frameworks_native-f8ea9b579653756d5adb1f0f09cec41857923ae8.tar.bz2
sf: vds: Avoid HWC for certain scenarios
Reserve HWC for VDS for WFD use case. During WFD usecase, sink usage will contain GRALLOC_USAGE_PRIVATE_WFD flag. When HWC is avoided, all virtual displays are composed using GLES. This means that GLES composes directly into the sink buffer and signals the consumer. Furthermore, it is expected that any color conversion will be handled on the consumer side. CRs-Fixed: 908380 Change-Id: I93ff54c79ece788b6caf3f4172835d8ac1362f62
Diffstat (limited to 'services/surfaceflinger/DisplayUtils.h')
-rw-r--r--services/surfaceflinger/DisplayUtils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayUtils.h b/services/surfaceflinger/DisplayUtils.h
index cdf2b67..bb3d16b 100644
--- a/services/surfaceflinger/DisplayUtils.h
+++ b/services/surfaceflinger/DisplayUtils.h
@@ -61,6 +61,7 @@ class DisplayUtils {
sp<IGraphicBufferProducer> &producer, sp<IGraphicBufferProducer> bqProducer,
sp<IGraphicBufferConsumer> bqConsumer, String8 currentStateDisplayName,
bool currentStateIsSecure, int currentStateType);
+ bool canAllocateHwcDisplayIdForVDS(int usage);
DisplayUtils();
private:
static DisplayUtils* sDisplayUtils;