summaryrefslogtreecommitdiffstats
path: root/libs/ui/PixelFormat.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-02-24 14:58:36 -0800
committerMathias Agopian <mathias@google.com>2012-02-24 14:58:36 -0800
commite9d4c71f47f74ee9a4a490f62769ad010a17d19b (patch)
tree8227f4727eb45324bf96bb18e4290f206f19108f /libs/ui/PixelFormat.cpp
parent2d77b5332ac4ef5b252fbd8f56a195e0fce03292 (diff)
downloadframeworks_base-e9d4c71f47f74ee9a4a490f62769ad010a17d19b.zip
frameworks_base-e9d4c71f47f74ee9a4a490f62769ad010a17d19b.tar.gz
frameworks_base-e9d4c71f47f74ee9a4a490f62769ad010a17d19b.tar.bz2
deprecate L_8, LA_88 and RGB_332 in sdk
re-add support for pixelformats L_8, LA_88 and RGB_332 in libui for backward compatibility. This may or may not fix 6058926 Bug: 6049685 Change-Id: Ic1b8b4cc994522f7fe664da64c0ef76b98bc6d53
Diffstat (limited to 'libs/ui/PixelFormat.cpp')
-rw-r--r--libs/ui/PixelFormat.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ui/PixelFormat.cpp b/libs/ui/PixelFormat.cpp
index 6993dac..fc1d3c2 100644
--- a/libs/ui/PixelFormat.cpp
+++ b/libs/ui/PixelFormat.cpp
@@ -48,7 +48,10 @@ static Info const sPixelFormatInfos[] = {
{ 4, 32, {32,24, 24,16, 16, 8, 8, 0 }, PixelFormatInfo::RGBA },
{ 2, 16, { 1, 0, 16,11, 11, 6, 6, 1 }, PixelFormatInfo::RGBA },
{ 2, 16, { 4, 0, 16,12, 12, 8, 8, 4 }, PixelFormatInfo::RGBA },
- { 1, 8, { 8, 0, 0, 0, 0, 0, 0, 0 }, PixelFormatInfo::ALPHA}
+ { 1, 8, { 8, 0, 0, 0, 0, 0, 0, 0 }, PixelFormatInfo::ALPHA},
+ { 1, 8, { 0, 0, 8, 0, 8, 0, 8, 0 }, PixelFormatInfo::L },
+ { 2, 16, {16, 8, 8, 0, 8, 0, 8, 0 }, PixelFormatInfo::LA },
+ { 1, 8, { 0, 0, 8, 5, 5, 2, 2, 0 }, PixelFormatInfo::RGB },
};
static const Info* gGetPixelFormatTable(size_t* numEntries) {