Test: angle_perftests --gtest_filter="*standoff_2*"
TBR: jmadill@google.com,timvp@google.com
Bug: b/181681788
Bug: angleproject:5708
Change-Id: I36314d1addc880cc4fb0dc321cda4ba3eabab000
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2728662
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Cody Northrop <cnorthrop@google.com>
This commit is contained in:
Cody Northrop 2021-03-02 12:05:08 -07:00 коммит произвёл Commit Bot
Родитель 22fc95234d
Коммит 210a464e2f
7 изменённых файлов: 33 добавлений и 5 удалений

Просмотреть файл

@ -1,6 +1,6 @@
{
"src/tests/restricted_traces/.gitignore":
"ac219d0b1a2226c6a2e02a6281c82f5e",
"efb830bf196eac9e942b8bd996cfaae4",
"src/tests/restricted_traces/aliexpress.tar.gz.sha1":
"12f48ff0c4ca7980ea879c81b0c9518b",
"src/tests/restricted_traces/among_us.tar.gz.sha1":
@ -86,13 +86,13 @@
"src/tests/restricted_traces/real_gangster_crime.tar.gz.sha1":
"c85be329035a760edad673eb2ca7c3f1",
"src/tests/restricted_traces/restricted_traces.json":
"09bd4ec521b2c1f8480fd0e631e3a3e2",
"906d4c3e0ebb06004aeda46bc43d3230",
"src/tests/restricted_traces/restricted_traces_autogen.cpp":
"cf4d2d42aded575e8961aac4a64e7783",
"7a139aa6e641addb70e008ab52efb01a",
"src/tests/restricted_traces/restricted_traces_autogen.gni":
"49c5823d89229be023fec0fe38e81d1f",
"c50227eea387a131a1740959f1f260e0",
"src/tests/restricted_traces/restricted_traces_autogen.h":
"c216961fd499aa3ede9e9a7587298ea8",
"de749fc53c784e3dc84da74c37d74955",
"src/tests/restricted_traces/rise_of_kingdoms.tar.gz.sha1":
"d4618f857c44f0dfa642ae3af8f161d9",
"src/tests/restricted_traces/romancing_saga.tar.gz.sha1":
@ -103,6 +103,8 @@
"f8490221b74d0186b86a3d9e2b37b97d",
"src/tests/restricted_traces/sniper_3d.tar.gz.sha1":
"1901148bf50860b68778ffb077c72406",
"src/tests/restricted_traces/standoff_2.tar.gz.sha1":
"5ebf645e4ea83fc7da1baf6616742eeb",
"src/tests/restricted_traces/subway_surfers.tar.gz.sha1":
"647775e4cd6bc9969b69463c2ad99a39",
"src/tests/restricted_traces/temple_run_2.tar.gz.sha1":

2
src/tests/restricted_traces/.gitignore поставляемый
Просмотреть файл

@ -90,6 +90,8 @@ shadow_fight_2.tar.gz
shadow_fight_2/
sniper_3d.tar.gz
sniper_3d/
standoff_2.tar.gz
standoff_2/
subway_surfers.tar.gz
subway_surfers/
temple_run_2.tar.gz

Просмотреть файл

@ -53,6 +53,7 @@
"saint_seiya_awakening",
"shadow_fight_2",
"sniper_3d",
"standoff_2",
"subway_surfers",
"temple_run_2",
"temple_run_300",

Просмотреть файл

@ -57,6 +57,7 @@
#include "saint_seiya_awakening/saint_seiya_awakening_capture_context2.h"
#include "shadow_fight_2/shadow_fight_2_capture_context2.h"
#include "sniper_3d/sniper_3d_capture_context3.h"
#include "standoff_2/standoff_2_capture_context2.h"
#include "subway_surfers/subway_surfers_capture_context2.h"
#include "temple_run_2/temple_run_2_capture_context1.h"
#include "temple_run_300/temple_run_300_capture_context1.h"
@ -287,6 +288,10 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
{sniper_3d::kReplayContextClientMajorVersion, sniper_3d::kReplayContextClientMinorVersion,
sniper_3d::kReplayFrameStart, sniper_3d::kReplayFrameEnd, sniper_3d::kReplayDrawSurfaceWidth,
sniper_3d::kReplayDrawSurfaceHeight, "sniper_3d"}},
{RestrictedTraceID::standoff_2,
{standoff_2::kReplayContextClientMajorVersion, standoff_2::kReplayContextClientMinorVersion,
standoff_2::kReplayFrameStart, standoff_2::kReplayFrameEnd,
standoff_2::kReplayDrawSurfaceWidth, standoff_2::kReplayDrawSurfaceHeight, "standoff_2"}},
{RestrictedTraceID::subway_surfers,
{kDefaultReplayContextClientMajorVersion, kDefaultReplayContextClientMinorVersion,
subway_surfers::kReplayFrameStart, subway_surfers::kReplayFrameEnd,
@ -474,6 +479,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
case RestrictedTraceID::sniper_3d:
sniper_3d::ReplayContext3Frame(frameIndex);
break;
case RestrictedTraceID::standoff_2:
standoff_2::ReplayContext2Frame(frameIndex);
break;
case RestrictedTraceID::subway_surfers:
subway_surfers::ReplayContext2Frame(frameIndex);
break;
@ -647,6 +655,9 @@ void ResetReplay(RestrictedTraceID traceID)
case RestrictedTraceID::sniper_3d:
sniper_3d::ResetContext3Replay();
break;
case RestrictedTraceID::standoff_2:
standoff_2::ResetContext2Replay();
break;
case RestrictedTraceID::subway_surfers:
subway_surfers::ResetContext2Replay();
break;
@ -820,6 +831,9 @@ void SetupReplay(RestrictedTraceID traceID)
case RestrictedTraceID::sniper_3d:
sniper_3d::SetupContext3Replay();
break;
case RestrictedTraceID::standoff_2:
standoff_2::SetupContext2Replay();
break;
case RestrictedTraceID::subway_surfers:
subway_surfers::SetupContext2Replay();
break;
@ -993,6 +1007,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
case RestrictedTraceID::sniper_3d:
sniper_3d::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::standoff_2:
standoff_2::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::subway_surfers:
subway_surfers::SetBinaryDataDir(dataDir);
break;
@ -1166,6 +1183,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
case RestrictedTraceID::sniper_3d:
sniper_3d::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::standoff_2:
standoff_2::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::subway_surfers:
subway_surfers::SetBinaryDataDecompressCallback(callback);
break;

Просмотреть файл

@ -55,6 +55,7 @@ angle_restricted_traces = [
"saint_seiya_awakening 2",
"shadow_fight_2 2",
"sniper_3d 3",
"standoff_2 2",
"subway_surfers 2",
"temple_run_2 1",
"temple_run_300 1",

Просмотреть файл

@ -100,6 +100,7 @@ enum class RestrictedTraceID
saint_seiya_awakening,
shadow_fight_2,
sniper_3d,
standoff_2,
subway_surfers,
temple_run_2,
temple_run_300,

Просмотреть файл

@ -0,0 +1 @@
47fc42ec1b5667147ebd1fe3789fbf6d26a31b5d