summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2017-02-10 18:50:17 -0800
committer Romain Guy <romainguy@google.com> 2017-02-15 17:00:46 -0800
commit541f22658ab1617c9d12c98684ab40248df8749b (patch)
treeff1527eb4f7bfe7abd263e3c33b7e965634e1c09 /services/surfaceflinger/Layer.cpp
parentbb5afada05e597b8a74e3888863319c319c3c944 (diff)
Add RGBA 10:10:10:2 format for surfaces
Bug: 2984164 Test: CtsHardwareTestCases Change-Id: Ifc90e413f414a19ac09e923e48ec7ff45d3e930b
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 3a9bca6bb0..bb1fca68d7 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -1299,6 +1299,7 @@ bool Layer::getOpacityForFormat(uint32_t format) {
case HAL_PIXEL_FORMAT_RGBA_8888:
case HAL_PIXEL_FORMAT_BGRA_8888:
case HAL_PIXEL_FORMAT_RGBA_FP16:
+ case HAL_PIXEL_FORMAT_RGBA_1010102:
return false;
}
// in all other case, we have no blending (also for unknown formats)