diff options
author | Mathias Agopian <mathias@google.com> | 2012-02-24 14:58:36 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-02-24 14:58:36 -0800 |
commit | ff615cc7a1cceedd705b0623b058c54669b29596 (patch) | |
tree | ceff349c4850df6c830d026aae4249b437b4c3ba /services/surfaceflinger/Layer.cpp | |
parent | 0c76ba2dd9df43e13482f9748abe452a8ed2a9a4 (diff) | |
download | frameworks_native-ff615cc7a1cceedd705b0623b058c54669b29596.zip frameworks_native-ff615cc7a1cceedd705b0623b058c54669b29596.tar.gz frameworks_native-ff615cc7a1cceedd705b0623b058c54669b29596.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 'services/surfaceflinger/Layer.cpp')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 4ee6953..efcdd87 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -160,7 +160,10 @@ status_t Layer::setBuffers( uint32_t w, uint32_t h, // this surfaces pixel format PixelFormatInfo info; status_t err = getPixelFormatInfo(format, &info); - if (err) return err; + if (err) { + ALOGE("unsupported pixelformat %d", format); + return err; + } // the display's pixel format const DisplayHardware& hw(graphicPlane(0).displayHardware()); @@ -170,6 +173,7 @@ status_t Layer::setBuffers( uint32_t w, uint32_t h, // never allow a surface larger than what our underlying GL implementation // can handle. if ((uint32_t(w)>maxSurfaceDims) || (uint32_t(h)>maxSurfaceDims)) { + ALOGE("dimensions too large %u x %u", uint32_t(w), uint32_t(h)); return BAD_VALUE; } |