summaryrefslogtreecommitdiffstats
path: root/include/surfaceflinger
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-08-30 18:51:54 -0700
committerMathias Agopian <mathias@google.com>2011-08-30 18:51:54 -0700
commit41b6aabf356d8a505da37b1d046bc9010028fe8b (patch)
tree2e3e01021e29aa0aa4c8559fdceb810c888bc4e5 /include/surfaceflinger
parent4e92d140efa3e7fcafa13fd9a1221dbcbd04d390 (diff)
downloadframeworks_native-41b6aabf356d8a505da37b1d046bc9010028fe8b.zip
frameworks_native-41b6aabf356d8a505da37b1d046bc9010028fe8b.tar.gz
frameworks_native-41b6aabf356d8a505da37b1d046bc9010028fe8b.tar.bz2
fix Surface positions are not floats
Added Surface.setPosition(float, float) which allows to set a surface's position in float. Bug: 5239859 Change-Id: I903aef4ad5b5999142202fb8ea30fe216d805711
Diffstat (limited to 'include/surfaceflinger')
-rw-r--r--include/surfaceflinger/SurfaceComposerClient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/surfaceflinger/SurfaceComposerClient.h b/include/surfaceflinger/SurfaceComposerClient.h
index 7fbbfb2..ace0735 100644
--- a/include/surfaceflinger/SurfaceComposerClient.h
+++ b/include/surfaceflinger/SurfaceComposerClient.h
@@ -145,7 +145,7 @@ public:
status_t setAlpha(SurfaceID id, float alpha=1.0f);
status_t setFreezeTint(SurfaceID id, uint32_t tint);
status_t setMatrix(SurfaceID id, float dsdx, float dtdx, float dsdy, float dtdy);
- status_t setPosition(SurfaceID id, int32_t x, int32_t y);
+ status_t setPosition(SurfaceID id, float x, float y);
status_t setSize(SurfaceID id, uint32_t w, uint32_t h);
status_t destroySurface(SurfaceID sid);