Hash :
223cd0ac
Author :
Date :
2021-06-15T18:46:07
Capture/Replay: Refactor shared context handling
This is the initial CL to enable capture/replay of multi-context
applications.
This CL refactors FrameCapture and FrameCaptureShared to move much of
the functionality into FrameCaptureShared, since most everything is
shared by Contexts in the share group. For example, the setup of the
majority of the GL objects is done in the new SetupReplayContextShared()
function in the new $LABEL_capture_context_shared_frame001.cpp file. The
setup is performed by (for example):
void SetupReplay()
{
$LABEL::InitReplay();
$LABEL::SetupReplayContextShared();
SetupReplayContext2();
}
This performs the shared setup first, followed by the context-specific
setup, which may reference shared objects careated by
LABEL::SetupReplayContextShared().
No re-capturing is required with this change, since the external APIs
(i.e., SetupReplay()) are still the same.
Bug: angleproject:5878
Test: Manual MEC and replay of Magic Tiles 3, Candy Crush Soda Saga, Temple Run 2
Change-Id: Iab7bfe651437e9be1dee83514cd97acc20c61d1d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2965780
Commit-Queue: Tim Van Patten <timvp@google.com>
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
{
"src/tests/restricted_traces/.gitignore":
"b83bbab71fcc836556ce3aa7c992ca44",
"src/tests/restricted_traces/gen_restricted_traces.py":
"67fa0418060411bae94c64b05b470952",
"src/tests/restricted_traces/restricted_traces.json":
"0609bc8adca1e55fa78b71a1d07d44f9",
"src/tests/restricted_traces/restricted_traces_autogen.cpp":
"bdf25c3975dddd48624b258ae2894917",
"src/tests/restricted_traces/restricted_traces_autogen.gni":
"ad18230e0c38f650b2df15f1c1f0c53d",
"src/tests/restricted_traces/restricted_traces_autogen.h":
"4b5b94d3dd946c72db59e2717ded7a41"
}