diff options
author | 2012-02-24 15:09:54 -0800 | |
---|---|---|
committer | 2012-02-24 15:09:54 -0800 | |
commit | 7b49b4bea8090bb8e5015225eb05686d3676205c (patch) | |
tree | 7cfe655be70ea8adc3f9aed9d567cd6da768ae6c /services/surfaceflinger/Layer.cpp | |
parent | 6513daef5e34082d9670c4149252703d40f8d937 (diff) | |
parent | e9d4c71f47f74ee9a4a490f62769ad010a17d19b (diff) |
Merge "deprecate L_8, LA_88 and RGB_332 in sdk"
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 4ee695398f62..efcdd8764275 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; } |