Commit 60b05744 authored by sievers's avatar sievers Committed by Commit bot

android: Pass sync point to CopyOutputResult's release callback

BUG=411755

Review URL: https://codereview.chromium.org/565583006

Cr-Commit-Position: refs/heads/master@{#294469}
parent 6d269edd
......@@ -108,7 +108,14 @@ void CopyFromCompositingSurfaceFinished(
TRACE_EVENT0(
"cc", "RenderWidgetHostViewAndroid::CopyFromCompositingSurfaceFinished");
bitmap_pixels_lock.reset();
release_callback->Run(0, false);
uint32 sync_point = 0;
if (result) {
GLHelper* gl_helper =
ImageTransportFactoryAndroid::GetInstance()->GetGLHelper();
sync_point = gl_helper->InsertSyncPoint();
}
bool lost_resource = sync_point == 0;
release_callback->Run(sync_point, lost_resource);
UMA_HISTOGRAM_TIMES(kAsyncReadBackString,
base::TimeTicks::Now() - start_time);
callback.Run(result, *bitmap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment