diff options
| author | 2019-01-09 21:10:16 +0000 | |
|---|---|---|
| committer | 2019-01-09 21:10:16 +0000 | |
| commit | b746e3b7d476419b272859d0b38c777600e476c9 (patch) | |
| tree | 92c8a674ac2b9a35a9bc7ae5c0927d12c13e78f7 /libs/gui/SurfaceComposerClient.cpp | |
| parent | 5d5004925e833f08b1c5bcc5be1158c2e280b03b (diff) | |
| parent | 5eb6ab275d5ac9083639183ca965fa9df92e44b5 (diff) | |
Merge "Revert "blast: create SurfaceControl from Surface parent""
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index cee9153cf3..824e43fb07 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -972,29 +972,6 @@ sp<SurfaceControl> SurfaceComposerClient::createSurface( return s; } -sp<SurfaceControl> SurfaceComposerClient::createWithSurfaceParent(const String8& name, uint32_t w, - uint32_t h, PixelFormat format, - uint32_t flags, Surface* parent, - int32_t windowType, - int32_t ownerUid) { - sp<SurfaceControl> sur; - status_t err = mStatus; - - if (mStatus == NO_ERROR) { - sp<IBinder> handle; - sp<IGraphicBufferProducer> parentGbp = parent->getIGraphicBufferProducer(); - sp<IGraphicBufferProducer> gbp; - - err = mClient->createWithSurfaceParent(name, w, h, format, flags, parentGbp, windowType, - ownerUid, &handle, &gbp); - ALOGE_IF(err, "SurfaceComposerClient::createWithSurfaceParent error %s", strerror(-err)); - if (err == NO_ERROR) { - return new SurfaceControl(this, handle, gbp, true /* owned */); - } - } - return nullptr; -} - status_t SurfaceComposerClient::createSurfaceChecked( const String8& name, uint32_t w, @@ -1157,7 +1134,6 @@ status_t SurfaceComposerClient::getDisplayedContentSample(const sp<IBinder>& dis return ComposerService::getComposerService()->getDisplayedContentSample(display, maxFrames, timestamp, outStats); } - // ---------------------------------------------------------------------------- status_t ScreenshotClient::capture(const sp<IBinder>& display, const ui::Dataspace reqDataSpace, |