summaryrefslogtreecommitdiff
path: root/libs/gui/CpuConsumer.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 /libs/gui/CpuConsumer.cpp
parentbb5afada05e597b8a74e3888863319c319c3c944 (diff)
Add RGBA 10:10:10:2 format for surfaces
Bug: 2984164 Test: CtsHardwareTestCases Change-Id: Ifc90e413f414a19ac09e923e48ec7ff45d3e930b
Diffstat (limited to 'libs/gui/CpuConsumer.cpp')
-rw-r--r--libs/gui/CpuConsumer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gui/CpuConsumer.cpp b/libs/gui/CpuConsumer.cpp
index a9bafef8b6..ae7c65c441 100644
--- a/libs/gui/CpuConsumer.cpp
+++ b/libs/gui/CpuConsumer.cpp
@@ -65,6 +65,7 @@ static bool isPossiblyYUV(PixelFormat format) {
case HAL_PIXEL_FORMAT_RGBA_8888:
case HAL_PIXEL_FORMAT_RGBX_8888:
case HAL_PIXEL_FORMAT_RGBA_FP16:
+ case HAL_PIXEL_FORMAT_RGBA_1010102:
case HAL_PIXEL_FORMAT_RGB_888:
case HAL_PIXEL_FORMAT_RGB_565:
case HAL_PIXEL_FORMAT_BGRA_8888: