OSDN Git Service

fix a bug that caused the PixelFormat viewed by Surface to be wrong.
authorMathias Agopian <mathias@google.com>
Thu, 20 Aug 2009 00:46:26 +0000 (17:46 -0700)
committerMathias Agopian <mathias@google.com>
Thu, 20 Aug 2009 00:46:26 +0000 (17:46 -0700)
commit18b6b49ea5235fb6c0802db9a0cc2c6dd20646cb
tree99d8c9f592a961c1af7f583792f4178bce2cc89f
parentb2f8450db8dfbc05724624f93d9ec5e65f0b7e54
fix a bug that caused the PixelFormat viewed by Surface to be wrong.

what happened is that the efective pixel format is calculated by SF but Surface nevew had access to it directly.
in particular this caused query(FORMAT) to return the requested format instead of the effective format.
include/ui/ISurfaceFlingerClient.h
libs/surfaceflinger/LayerBase.cpp
libs/surfaceflinger/LayerBase.h
libs/surfaceflinger/SurfaceFlinger.cpp
libs/surfaceflinger/SurfaceFlinger.h
libs/ui/ISurfaceFlingerClient.cpp
libs/ui/Surface.cpp