diff options
author | 2021-01-27 20:27:23 -0800 | |
---|---|---|
committer | 2021-01-29 18:03:58 +0000 | |
commit | 99599940f68158aeef735d8763980d0dbd397b51 (patch) | |
tree | b8620b3a33b7d51223a4a22707d1bab2669de793 /services/surfaceflinger/SurfaceFlinger.h | |
parent | 31999efbac943af5c43c64a6929d5fe5857c6532 (diff) |
SurfaceFlinger: move sync_wait for screen capture to client
Free up time from the SF's main thread by moving the fence waiting
to the client.
Test: Observe systrace of region sample thread
Test: adb shell screencap
Test: Recents takes the screenshot
Test: Rotate device
Test: Volume + power down for screenshot
Bug: 178649983
Change-Id: I0a4991c013375b1f354e0728a06ca30a835b0422
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.h')
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.h b/services/surfaceflinger/SurfaceFlinger.h index 1deef6eb17..50d6099698 100644 --- a/services/surfaceflinger/SurfaceFlinger.h +++ b/services/surfaceflinger/SurfaceFlinger.h @@ -815,8 +815,8 @@ private: status_t captureScreenCommon(RenderAreaFuture, TraverseLayersFunction, sp<GraphicBuffer>&, bool regionSampling, const sp<IScreenCaptureListener>&); status_t renderScreenImplLocked(const RenderArea&, TraverseLayersFunction, - const sp<GraphicBuffer>&, bool forSystem, int* outSyncFd, - bool regionSampling, ScreenCaptureResults&); + const sp<GraphicBuffer>&, bool forSystem, bool regionSampling, + ScreenCaptureResults&); sp<DisplayDevice> getDisplayByIdOrLayerStack(uint64_t displayOrLayerStack) REQUIRES(mStateLock); sp<DisplayDevice> getDisplayByLayerStack(uint64_t layerStack) REQUIRES(mStateLock); |