Commit be74c47d by Jamie Madill Committed by Commit Bot

Capture/Replay: Also capture on postSubBuffer.

Necessary to capture from Chrome. Bug: angleproject:3611 Change-Id: Ia9330e0c273e65adaa4171020d0aebb05e100260 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1752013Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarTim Van Patten <timvp@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 611663f4
...@@ -304,10 +304,9 @@ void FrameCapture::onEndFrame() ...@@ -304,10 +304,9 @@ void FrameCapture::onEndFrame()
if (!mCalls.empty()) if (!mCalls.empty())
{ {
saveCapturedFrameAsCpp(); saveCapturedFrameAsCpp();
reset();
mFrameIndex++;
} }
reset();
mFrameIndex++;
} }
void FrameCapture::saveCapturedFrameAsCpp() void FrameCapture::saveCapturedFrameAsCpp()
......
...@@ -258,7 +258,9 @@ Error Surface::postSubBuffer(const gl::Context *context, ...@@ -258,7 +258,9 @@ Error Surface::postSubBuffer(const gl::Context *context,
return egl::NoError(); return egl::NoError();
} }
return mImplementation->postSubBuffer(context, x, y, width, height); ANGLE_TRY(mImplementation->postSubBuffer(context, x, y, width, height));
postSwap(context);
return NoError();
} }
Error Surface::setPresentationTime(EGLnsecsANDROID time) Error Surface::setPresentationTime(EGLnsecsANDROID time)
......
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