am ac006439
: Merge "Revert "Revert "Change SurfaceControl setPosition to take floats""" into jb-mr2-dev
* commit 'ac006439bb635cd99d8dcbefe95fa680e21519b5': Revert "Revert "Change SurfaceControl setPosition to take floats""
This commit is contained in:
commit
eda14c1bef
@ -58,7 +58,7 @@ public:
|
|||||||
|
|
||||||
status_t setLayerStack(int32_t layerStack);
|
status_t setLayerStack(int32_t layerStack);
|
||||||
status_t setLayer(int32_t layer);
|
status_t setLayer(int32_t layer);
|
||||||
status_t setPosition(int32_t x, int32_t y);
|
status_t setPosition(float x, float y);
|
||||||
status_t setSize(uint32_t w, uint32_t h);
|
status_t setSize(uint32_t w, uint32_t h);
|
||||||
status_t hide();
|
status_t hide();
|
||||||
status_t show();
|
status_t show();
|
||||||
|
@ -102,7 +102,7 @@ status_t SurfaceControl::setLayer(int32_t layer) {
|
|||||||
const sp<SurfaceComposerClient>& client(mClient);
|
const sp<SurfaceComposerClient>& client(mClient);
|
||||||
return client->setLayer(mHandle, layer);
|
return client->setLayer(mHandle, layer);
|
||||||
}
|
}
|
||||||
status_t SurfaceControl::setPosition(int32_t x, int32_t y) {
|
status_t SurfaceControl::setPosition(float x, float y) {
|
||||||
status_t err = validate();
|
status_t err = validate();
|
||||||
if (err < 0) return err;
|
if (err < 0) return err;
|
||||||
const sp<SurfaceComposerClient>& client(mClient);
|
const sp<SurfaceComposerClient>& client(mClient);
|
||||||
|
Loading…
Reference in New Issue
Block a user