diff options
author | 2020-09-01 14:18:49 +0000 | |
---|---|---|
committer | 2020-09-25 12:33:30 +0000 | |
commit | 2ec1f7b970563ffd1651c36c52e9fc6831120915 (patch) | |
tree | a2ed119ce2c28fcb34fba7a815ce6cde33ad1079 /libs/gui/ISurfaceComposerClient.cpp | |
parent | 7eb7ee7e16879e07c135bc89fee7a810064492af (diff) |
Provide layer id on surface creation
Allows for the layer state to be dumped on the client side with the layer's id so that they can then be associated with the respective layer dumped on the server side
Test: Check that the layer ID is provided on the client side when createSurface is called
Change-Id: I7ea851942c43fc48326bb8558a605ba6877600da
Diffstat (limited to 'libs/gui/ISurfaceComposerClient.cpp')
-rw-r--r-- | libs/gui/ISurfaceComposerClient.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libs/gui/ISurfaceComposerClient.cpp b/libs/gui/ISurfaceComposerClient.cpp index 621cf5950b..a814362e3c 100644 --- a/libs/gui/ISurfaceComposerClient.cpp +++ b/libs/gui/ISurfaceComposerClient.cpp @@ -49,13 +49,13 @@ public: status_t createSurface(const String8& name, uint32_t width, uint32_t height, PixelFormat format, uint32_t flags, const sp<IBinder>& parent, LayerMetadata metadata, - sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp, + sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp, int32_t* outId, uint32_t* outTransformHint) override { return callRemote<decltype(&ISurfaceComposerClient::createSurface)>(Tag::CREATE_SURFACE, name, width, height, format, flags, parent, std::move(metadata), - handle, gbp, + handle, gbp, outId, outTransformHint); } @@ -63,14 +63,14 @@ public: PixelFormat format, uint32_t flags, const sp<IGraphicBufferProducer>& parent, LayerMetadata metadata, sp<IBinder>* handle, - sp<IGraphicBufferProducer>* gbp, + sp<IGraphicBufferProducer>* gbp, int32_t* outId, uint32_t* outTransformHint) override { return callRemote<decltype( &ISurfaceComposerClient::createWithSurfaceParent)>(Tag::CREATE_WITH_SURFACE_PARENT, name, width, height, format, flags, parent, std::move(metadata), handle, gbp, - outTransformHint); + outId, outTransformHint); } status_t clearLayerFrameStats(const sp<IBinder>& handle) const override { @@ -85,10 +85,11 @@ public: outStats); } - status_t mirrorSurface(const sp<IBinder>& mirrorFromHandle, sp<IBinder>* outHandle) override { + status_t mirrorSurface(const sp<IBinder>& mirrorFromHandle, sp<IBinder>* outHandle, + int32_t* outId) override { return callRemote<decltype(&ISurfaceComposerClient::mirrorSurface)>(Tag::MIRROR_SURFACE, mirrorFromHandle, - outHandle); + outHandle, outId); } }; |