Commit e94c35a1 by Jamie Madill Committed by Commit Bot

Capture/Replay: Always base replays on frame "1".

No functional change. When we trigger a capture at frame X, the value of X is not important. Instead we'll record the frames as 1,2,3,etc. Helps keep the traces more consistent and re-trace the same way as they are captured. Bug: angleproject:5134 Change-Id: Icd8654d509423edcc74cd0ef694795a787f5cc05 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2500602 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarCourtney Goeltzenleuchter <courtneygo@google.com>
parent 47e66f22
...@@ -316,6 +316,10 @@ class FrameCapture final : angle::NonCopyable ...@@ -316,6 +316,10 @@ class FrameCapture final : angle::NonCopyable
bool isCapturing() const; bool isCapturing() const;
void replay(gl::Context *context); void replay(gl::Context *context);
uint32_t getFrameCount() const;
// Returns a frame index starting from "1" as the first frame.
uint32_t getReplayFrameIndex() const;
void trackBufferMapping(CallCapture *call, void trackBufferMapping(CallCapture *call,
gl::BufferID id, gl::BufferID id,
...@@ -356,8 +360,8 @@ class FrameCapture final : angle::NonCopyable ...@@ -356,8 +360,8 @@ class FrameCapture final : angle::NonCopyable
bool mCompression; bool mCompression;
gl::AttribArray<int> mClientVertexArrayMap; gl::AttribArray<int> mClientVertexArrayMap;
uint32_t mFrameIndex; uint32_t mFrameIndex;
uint32_t mFrameStart; uint32_t mCaptureStartFrame;
uint32_t mFrameEnd; uint32_t mCaptureEndFrame;
bool mIsFirstFrame = true; bool mIsFirstFrame = true;
bool mWroteIndexFile = false; bool mWroteIndexFile = false;
EGLint mDrawSurfaceWidth = 0; EGLint mDrawSurfaceWidth = 0;
......
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