summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/SurfaceFlinger.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-01-13 17:53:01 -0800
committerMathias Agopian <mathias@google.com>2011-01-13 17:53:01 -0800
commitfb4dcb1a679000c029bb8e76fea7066d002235d5 (patch)
treea049012cec990c6fdf23f59a53c688f9859fce25 /services/surfaceflinger/SurfaceFlinger.h
parent853548287ffe4eb85d1bd10669270292336d137a (diff)
downloadframeworks_base-fb4dcb1a679000c029bb8e76fea7066d002235d5.zip
frameworks_base-fb4dcb1a679000c029bb8e76fea7066d002235d5.tar.gz
frameworks_base-fb4dcb1a679000c029bb8e76fea7066d002235d5.tar.bz2
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
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.h')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h
index 48642d4..0729879 100644
--- a/services/surfaceflinger/SurfaceFlinger.h
+++ b/services/surfaceflinger/SurfaceFlinger.h
@@ -208,6 +208,7 @@ public:
status_t removeLayer(const sp<LayerBase>& layer);
status_t addLayer(const sp<LayerBase>& layer);
status_t invalidateLayerVisibility(const sp<LayerBase>& layer);
+ void invalidateHwcGeometry();
sp<Layer> getLayer(const sp<ISurface>& sur) const;