summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceFlinger.h
diff options
context:
space:
mode:
authorRamakant Singh <ramakant@codeaurora.org>2019-03-22 18:52:13 +0530
committerdianlujitao <dianlujitao@lineageos.org>2020-05-20 21:28:05 +0800
commit187218450fbb33df85fbd6448e7bc712b6b91b5d (patch)
treee657953d5755b084f0b7574198c0102c5cdb1e0f /services/surfaceflinger/SurfaceFlinger.h
parentfd4ef2477ddffaa4e7ac1cf003141a1a666d99d4 (diff)
downloadandroid_frameworks_native-187218450fbb33df85fbd6448e7bc712b6b91b5d.tar.gz
android_frameworks_native-187218450fbb33df85fbd6448e7bc712b6b91b5d.tar.bz2
android_frameworks_native-187218450fbb33df85fbd6448e7bc712b6b91b5d.zip
sf: Allow VDS to use HWC
-- Preserve VDS layer pixel format based on GRALLOC flags. -- skip color layer for vds CRs-Fixed: 2178626 Change-Id: I36d0fe6edb72732a9fe5d2e66ca2d95f3ef7e1dc
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.h')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index 974486217..08d9dd36a 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -232,6 +232,8 @@ public:
static bool useContextPriority;
+ static bool sDirectStreaming;
+
// The data space and pixel format that SurfaceFlinger expects hardware composer
// to composite efficiently. Meaning under most scenarios, hardware composer
// will accept layers with the data space and pixel format.
@@ -665,6 +667,9 @@ private:
void traverseLayersInDisplay(const sp<const DisplayDevice>& display,
const LayerVector::Visitor& visitor);
+ bool canAllocateHwcDisplayIdForVDS(uint64_t usage);
+ bool skipColorLayer(const char* layerType);
+
sp<StartPropertySetThread> mStartPropertySetThread;
/* ------------------------------------------------------------------------