OSDN Git Service

fix [3312683] Camera mirroring problem after switching from back to front camera
authorMathias Agopian <mathias@google.com>
Fri, 14 Jan 2011 01:53:01 +0000 (17:53 -0800)
committerMathias Agopian <mathias@google.com>
Fri, 14 Jan 2011 01:53:01 +0000 (17:53 -0800)
commitad456f9878ff7c176499e7b992f9ff1cb3e9cdee
treeeb872776112b6ad6b4e247d56305d1563bd46686
parenta034863a11ffc63be309ce01fcbd7d7c1e62b4c6
fix [3312683] Camera mirroring problem after switching from back to front camera

the crop as well as buffer orientation can change at every frame, when that happens
we need to reset the hwc HAL (ie: set the GEOMETRY_CHANGED flag).
currently we achieve this by taking the same code path than an actual geometry change
which is a bit more heavy than necessary.

Change-Id: I751f9ed1eeec0c27db7df2e77d5d17c6bcc17a24
services/surfaceflinger/LayerBase.cpp
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h