Commit 8f7970cb by Jamie Madill Committed by Commit Bot

Trace/Replay: Reset replay after taking a screenshot.

This was causing a replay state tracking error that could fail some traces. For example, Mobile Legends. Bug: angleproject:4090 Bug: b/168049670 Change-Id: Ia4c2db795bb861fba77c9c35217ab22c2004c492 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2422686 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com>
parent a7e03ed7
......@@ -389,10 +389,12 @@ void TracePerfTest::saveScreenshot(const std::string &screenshotName)
mTestParams.windowHeight, rgbData);
// Finish the frame loop.
for (uint32_t nextFrame = traceInfo.startFrame + 1; nextFrame < traceInfo.endFrame; ++nextFrame)
for (uint32_t nextFrame = traceInfo.startFrame + 1; nextFrame <= traceInfo.endFrame;
++nextFrame)
{
ReplayFrame(testID, nextFrame);
}
ResetReplay(testID);
getGLWindow()->swap();
glFinish();
}
......
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