diff options
author | Mathias Agopian <mathias@google.com> | 2012-02-24 15:09:54 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-02-24 15:09:54 -0800 |
commit | 1c071f828cc8b13b5b6ecb88930c2bfcaf31575c (patch) | |
tree | ceff349c4850df6c830d026aae4249b437b4c3ba /services | |
parent | a60852fc600028fca6419167f6c7b3113e156609 (diff) | |
parent | ff615cc7a1cceedd705b0623b058c54669b29596 (diff) | |
download | frameworks_native-1c071f828cc8b13b5b6ecb88930c2bfcaf31575c.zip frameworks_native-1c071f828cc8b13b5b6ecb88930c2bfcaf31575c.tar.gz frameworks_native-1c071f828cc8b13b5b6ecb88930c2bfcaf31575c.tar.bz2 |
Merge "deprecate L_8, LA_88 and RGB_332 in sdk"
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 6 | ||||
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 2 |
2 files changed, 6 insertions, 2 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; } diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 9d821dc..05b5bf5 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -1285,7 +1285,7 @@ sp<ISurface> SurfaceFlinger::createSurface( return surfaceHandle; } - //ALOGD("createSurface for pid %d (%d x %d)", pid, w, h); + //ALOGD("createSurface for (%d x %d), name=%s", w, h, name.string()); sp<Layer> normalLayer; switch (flags & eFXSurfaceMask) { case eFXSurfaceNormal: |