Merge "CanvasContext::draw: flushAndSubmit when not drawing" into sc-dev am: 1171be085c am: 71417b2def
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15481327 Change-Id: Ia55f43fe9352699a06899088523ce0e8d7dccea6
This commit is contained in:
committed by
Automerger Merge Worker
commit
b27f52e4f7
@@ -483,6 +483,12 @@ nsecs_t CanvasContext::draw() {
|
||||
if (!Properties::isDrawingEnabled() ||
|
||||
(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();
|
||||
|
||||
Reference in New Issue
Block a user