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>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
{
"scripts/cl.xml":
"f923201d4ea3e1130763b19fa7faa7a2",
"scripts/egl.xml":
"013c552e6c523abdcf268268ea47e9fe",
"scripts/egl_angle_ext.xml":
"5bcc01462b355d933cf3ada15198fb68",
"scripts/entry_point_packed_egl_enums.json":
"0175304f39aec0f1816760c6460b6d62",
"scripts/entry_point_packed_gl_enums.json":
"4f7b43863a5e61991bba4010db463679",
"scripts/generate_entry_points.py":
"30efaf41a84593db7fc6f46d138be8b5",
"scripts/gl.xml":
"4fcbd11300c8edcb3ed50826780cd57e",
"scripts/gl_angle_ext.xml":
"08f74b35d908b7c02b45fdf45572c434",
"scripts/registry_xml.py":
"71449b728bf04f90e07b56cf461876b8",
"scripts/wgl.xml":
"c36001431919e1c435f1215a85f7e1db",
"src/common/entry_points_enum_autogen.cpp":
"cb3cc3248112b367ea0745e3c5704ada",
"src/common/entry_points_enum_autogen.h":
"507248f6c21e1d861049c26af1414ef4",
"src/libANGLE/Context_gl_1_autogen.h":
"6be1391ee21b3754d9e9c512255d4c5d",
"src/libANGLE/Context_gl_2_autogen.h":
"d6e875a405946a968dc565e58c13c8c0",
"src/libANGLE/Context_gl_3_autogen.h":
"cf9b149f033b1349409c0b4ee4042bdd",
"src/libANGLE/Context_gl_4_autogen.h":
"428a1039756f64e034812188f11f585f",
"src/libANGLE/Context_gles_1_0_autogen.h":
"51fce95acbf8de72d21255adbbe0e8cd",
"src/libANGLE/Context_gles_2_0_autogen.h":
"443d00d45de147d1d1e3b66846ea0c29",
"src/libANGLE/Context_gles_3_0_autogen.h":
"6c07c41ebd6f1d0ff9d97894332c9e1a",
"src/libANGLE/Context_gles_3_1_autogen.h":
"bb8198422232ca9ceaa06a5d37c3cd92",
"src/libANGLE/Context_gles_3_2_autogen.h":
"48567dca16fd881dfe6d61fee0e3106f",
"src/libANGLE/Context_gles_ext_autogen.h":
"dbf7c9716e46e29b44db01f215f0808a",
"src/libANGLE/capture/capture_gles_1_0_autogen.cpp":
"7ec7ef8f779b809a45d74b97502c419b",
"src/libANGLE/capture/capture_gles_1_0_autogen.h":
"141838b474dda3d9a6122e73d3621972",
"src/libANGLE/capture/capture_gles_2_0_autogen.cpp":
"8d1c4534e00a4b373a409704e5d6a0c5",
"src/libANGLE/capture/capture_gles_2_0_autogen.h":
"5d5fb0985b28b67ed094e1a4dcc17211",
"src/libANGLE/capture/capture_gles_3_0_autogen.cpp":
"c4fd6b2e604d8bb30953d5ba6021b683",
"src/libANGLE/capture/capture_gles_3_0_autogen.h":
"0f617befef65c1884072ec1244eca0ef",
"src/libANGLE/capture/capture_gles_3_1_autogen.cpp":
"22d19a77da41f82785cb7f580e39b3db",
"src/libANGLE/capture/capture_gles_3_1_autogen.h":
"d39d7cb1086dfeb870d0496c0d7cb79d",
"src/libANGLE/capture/capture_gles_3_2_autogen.cpp":
"1b836129d15ec1f64241b6cfcda61785",
"src/libANGLE/capture/capture_gles_3_2_autogen.h":
"74ed7366af3a46c0661397cfa29ec6fc",
"src/libANGLE/capture/capture_gles_ext_autogen.cpp":
"b027d574c21f369aee0fb0117f453935",
"src/libANGLE/capture/capture_gles_ext_autogen.h":
"46440404fc9219fbe709e564f26d57a6",
"src/libANGLE/capture/frame_capture_replay_autogen.cpp":
"e0a3c284b986e2a712589b6f3523d79c",
"src/libANGLE/capture/frame_capture_utils_autogen.cpp":
"dfad80f141010395be7d0ca59ef8ee7a",
"src/libANGLE/capture/frame_capture_utils_autogen.h":
"4405cac61b4f79b893bd40c7fc452397",
"src/libANGLE/validationCL_autogen.h":
"0022d0cdb6a9e2ef4a59b71164f62333",
"src/libANGLE/validationEGL_autogen.h":
"3927fa260ad183fd9193d65b3f8d82c5",
"src/libANGLE/validationES1_autogen.h":
"c8edb0a5b26303bf7c4692b9d0b05c1f",
"src/libANGLE/validationES2_autogen.h":
"1fc4c7017ae5949160ac2561e6d2e22e",
"src/libANGLE/validationES31_autogen.h":
"ed9066cbf406b6f782c058019895c65e",
"src/libANGLE/validationES32_autogen.h":
"522779ad8b54ead483b1c1ec2182f6f8",
"src/libANGLE/validationES3_autogen.h":
"7435b9caddf8787b937c71a54dda96e1",
"src/libANGLE/validationESEXT_autogen.h":
"498a3fcf388dd8edbe38b25aaa1621cc",
"src/libANGLE/validationGL1_autogen.h":
"439f8ea26dc37ee6608100f4c6f9205c",
"src/libANGLE/validationGL2_autogen.h":
"287405881447aff5c6c05d99799c0a63",
"src/libANGLE/validationGL3_autogen.h":
"967a8367b8ed2330cd942f714840491e",
"src/libANGLE/validationGL4_autogen.h":
"db77968c46394c58896f085265182ffa",
"src/libEGL/libEGL_autogen.cpp":
"01cc619c8493952c24f77ac4fa5d7d8a",
"src/libEGL/libEGL_autogen.def":
"3f504d6280dc1d847bc2dedc51fa2640",
"src/libGL/entry_points_gl_1_autogen.cpp":
"d94883448503706b57e770e628a64088",
"src/libGL/entry_points_gl_1_autogen.h":
"f5d504daaf2434ca7d0b8a6bb1afc61a",
"src/libGL/entry_points_gl_2_autogen.cpp":
"2dbb939ef95c1896f38db585e060ebf1",
"src/libGL/entry_points_gl_2_autogen.h":
"6d3e89c9fa3cb69203153c6cfab9e120",
"src/libGL/entry_points_gl_3_autogen.cpp":
"0be17864bf8a6f46c546f568403e355f",
"src/libGL/entry_points_gl_3_autogen.h":
"2dbae6f95a4f72417e50844e45e6f313",
"src/libGL/entry_points_gl_4_autogen.cpp":
"36be27fb77891bf029fa32694e11df70",
"src/libGL/entry_points_gl_4_autogen.h":
"859b5ca20dbbadd7dbb947df91bc09af",
"src/libGL/libGL_autogen.cpp":
"acd2e1984277482df9cc937a83a5df05",
"src/libGL/libGL_autogen.def":
"2789d87b05eea9f53d52e2aff499b785",
"src/libGLESv2/cl_stubs_autogen.h":
"6d880c6b65284192b5842f0e42ad2741",
"src/libGLESv2/egl_ext_stubs_autogen.h":
"2ef3b8d087f2a97f7270b96077c93856",
"src/libGLESv2/egl_get_labeled_object_data.json":
"2f4148b2ddf34e62670e32c5e6da4937",
"src/libGLESv2/egl_stubs_autogen.h":
"6439daa350c1663e71dd0af37dcc91df",
"src/libGLESv2/entry_points_cl_autogen.cpp":
"da26d01245459eb04827b8e0d7f0e58a",
"src/libGLESv2/entry_points_cl_autogen.h":
"dde2f94c3004874a7da995dae69da811",
"src/libGLESv2/entry_points_egl_autogen.cpp":
"e7b708af1c8de435532058eb165d421e",
"src/libGLESv2/entry_points_egl_autogen.h":
"3bc7a8df9deadd7cfd615d0cfad0c6a8",
"src/libGLESv2/entry_points_egl_ext_autogen.cpp":
"5386f7567505e1eceb3b82440d22508b",
"src/libGLESv2/entry_points_egl_ext_autogen.h":
"5ae83ea21ee98991b68847f66793553f",
"src/libGLESv2/entry_points_gles_1_0_autogen.cpp":
"1afe5067e82a30fbf62979c39ccc16f3",
"src/libGLESv2/entry_points_gles_1_0_autogen.h":
"1d3aef77845a416497070985a8e9cb31",
"src/libGLESv2/entry_points_gles_2_0_autogen.cpp":
"19d90121ace06dcba086e38b37287b19",
"src/libGLESv2/entry_points_gles_2_0_autogen.h":
"e682cd8f55110969f68d6a59573e0312",
"src/libGLESv2/entry_points_gles_3_0_autogen.cpp":
"388b421eaadeb3cd752c02dd81091775",
"src/libGLESv2/entry_points_gles_3_0_autogen.h":
"3ae6c2e3e9791a9c7491c1181a46abab",
"src/libGLESv2/entry_points_gles_3_1_autogen.cpp":
"9f553918b3c44a40339546bf9a1ff570",
"src/libGLESv2/entry_points_gles_3_1_autogen.h":
"0cadd684407fad3e288654da30527f78",
"src/libGLESv2/entry_points_gles_3_2_autogen.cpp":
"1de19dab9aa98e399bbe3c405ca9f13e",
"src/libGLESv2/entry_points_gles_3_2_autogen.h":
"647f932a299cdb4726b60bbba059f0d2",
"src/libGLESv2/entry_points_gles_ext_autogen.cpp":
"8ed62cce73b1f9ea5b93d6c659af0b99",
"src/libGLESv2/entry_points_gles_ext_autogen.h":
"ab5f87e44135d185ff12b5132dd83b7f",
"src/libGLESv2/libGLESv2_autogen.cpp":
"00aa56b3fea77c14e6b8c7bfdbb8f081",
"src/libGLESv2/libGLESv2_autogen.def":
"84d6b484facc65226664d7b7091a5244",
"src/libGLESv2/libGLESv2_no_capture_autogen.def":
"49fd4d626ffb5db90eff776dd4e4ab61",
"src/libGLESv2/libGLESv2_with_capture_autogen.def":
"9685b4b244dcdcfc0c4fc12deb9ac559",
"src/libOpenCL/libOpenCL_autogen.cpp":
"10849978c910dc1af5dd4f0c815d1581"
}