diff options
author | Brian Orr <brianorr@google.com> | 2021-08-11 19:11:45 +0000 |
---|---|---|
committer | Brian Orr <brianorr@google.com> | 2021-08-11 23:59:25 +0000 |
commit | ab1e0271287465c071b9b6ba89e6845fd7161063 (patch) | |
tree | 642e46e0ca778bf77b958c4973aaa8f6e030740e /libs/hwui/renderthread/CanvasContext.cpp | |
parent | b6bd2054b05bb47779c041675f34828517288d73 (diff) | |
parent | 1cb4fdb115b920ff5df88c33047243bef48224a6 (diff) |
Merge SP1A.210811.001
Change-Id: I5aa7cf27a3a3cc16830c9947a826e30a0da481c4
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.cpp')
-rw-r--r-- | libs/hwui/renderthread/CanvasContext.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index 025be7b2b6c1..2f3a509831d1 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -482,6 +482,12 @@ nsecs_t CanvasContext::draw() { if (dirty.isEmpty() && Properties::skipEmptyFrames && !surfaceRequiresRedraw()) { mCurrentFrameInfo->addFlag(FrameInfoFlags::SkippedFrame); + if (auto grContext = getGrContext()) { + // Submit to ensure that any texture uploads complete and Skia can + // free its staging buffers. + grContext->flushAndSubmit(); + } + // Notify the callbacks, even if there's nothing to draw so they aren't waiting // indefinitely waitOnFences(); |