Tests: Add Romancing Saga trace

Test: angle_perftests --gtest_filter="*romancing_saga*"
TBR: jmadill@google.com,timvp@google.com
Bug: angleproject:5622
Change-Id: I9f35fd0e0b9897e77f8d56547c2c134638b8b685
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2679323
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Cody Northrop <cnorthrop@google.com>
This commit is contained in:
Cody Northrop 2021-02-05 11:53:11 -07:00 коммит произвёл Commit Bot
Родитель ab1f516d7c
Коммит 0bb520adff
7 изменённых файлов: 33 добавлений и 5 удалений

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

@ -1,6 +1,6 @@
{
"src/tests/restricted_traces/.gitignore":
"4e623a37bf7372631c7f222c1564eb4b",
"376ef2d792116ed829dfc377b437b87e",
"src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1":
"2b5d6505d6a8b6f3bbfbad2c8405a89d",
"src/tests/restricted_traces/arena_of_valor.tar.gz.sha1":
@ -76,15 +76,17 @@
"src/tests/restricted_traces/real_gangster_crime.tar.gz.sha1":
"c85be329035a760edad673eb2ca7c3f1",
"src/tests/restricted_traces/restricted_traces.json":
"7eed313e826257e73426cc78b07b2154",
"dec04d1916b0649c0b595a7cd3979332",
"src/tests/restricted_traces/restricted_traces_autogen.cpp":
"2b4bde4e4aef3c2171735528b55a2604",
"d05c64d18b14a9630f503f28eefa9354",
"src/tests/restricted_traces/restricted_traces_autogen.gni":
"3f936634243168c4d302292dd6120bc9",
"9774fe958933680dd4aefd35c30d2d25",
"src/tests/restricted_traces/restricted_traces_autogen.h":
"0a26d879b694dcb092c1c924a2120e65",
"b1ede968b37ffe7ade00b41ea8c268be",
"src/tests/restricted_traces/rise_of_kingdoms.tar.gz.sha1":
"d4618f857c44f0dfa642ae3af8f161d9",
"src/tests/restricted_traces/romancing_saga.tar.gz.sha1":
"a46c4faab1651f5d87374c231c8dcea6",
"src/tests/restricted_traces/saint_seiya_awakening.tar.gz.sha1":
"c9cde6bdfd9096a44d5f03d905a45a4f",
"src/tests/restricted_traces/shadow_fight_2.tar.gz.sha1":

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

@ -72,6 +72,8 @@ real_gangster_crime.tar.gz
real_gangster_crime/
rise_of_kingdoms.tar.gz
rise_of_kingdoms/
romancing_saga.tar.gz
romancing_saga/
saint_seiya_awakening.tar.gz
saint_seiya_awakening/
shadow_fight_2.tar.gz

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

@ -44,6 +44,7 @@
"real_commando_secret_mission",
"real_gangster_crime",
"rise_of_kingdoms",
"romancing_saga",
"saint_seiya_awakening",
"shadow_fight_2",
"sniper_3d",

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

@ -48,6 +48,7 @@
#include "real_commando_secret_mission/real_commando_secret_mission_capture_context1.h"
#include "real_gangster_crime/real_gangster_crime_capture_context3.h"
#include "rise_of_kingdoms/rise_of_kingdoms_capture_context4.h"
#include "romancing_saga/romancing_saga_capture_context3.h"
#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"
@ -199,6 +200,10 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
{rise_of_kingdoms::kReplayFrameStart, rise_of_kingdoms::kReplayFrameEnd,
rise_of_kingdoms::kReplayDrawSurfaceWidth, rise_of_kingdoms::kReplayDrawSurfaceHeight,
"rise_of_kingdoms"}},
{RestrictedTraceID::romancing_saga,
{romancing_saga::kReplayFrameStart, romancing_saga::kReplayFrameEnd,
romancing_saga::kReplayDrawSurfaceWidth, romancing_saga::kReplayDrawSurfaceHeight,
"romancing_saga"}},
{RestrictedTraceID::saint_seiya_awakening,
{saint_seiya_awakening::kReplayFrameStart, saint_seiya_awakening::kReplayFrameEnd,
saint_seiya_awakening::kReplayDrawSurfaceWidth,
@ -358,6 +363,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
case RestrictedTraceID::rise_of_kingdoms:
rise_of_kingdoms::ReplayContext4Frame(frameIndex);
break;
case RestrictedTraceID::romancing_saga:
romancing_saga::ReplayContext3Frame(frameIndex);
break;
case RestrictedTraceID::saint_seiya_awakening:
saint_seiya_awakening::ReplayContext2Frame(frameIndex);
break;
@ -510,6 +518,9 @@ void ResetReplay(RestrictedTraceID traceID)
case RestrictedTraceID::rise_of_kingdoms:
rise_of_kingdoms::ResetContext4Replay();
break;
case RestrictedTraceID::romancing_saga:
romancing_saga::ResetContext3Replay();
break;
case RestrictedTraceID::saint_seiya_awakening:
saint_seiya_awakening::ResetContext2Replay();
break;
@ -662,6 +673,9 @@ void SetupReplay(RestrictedTraceID traceID)
case RestrictedTraceID::rise_of_kingdoms:
rise_of_kingdoms::SetupContext4Replay();
break;
case RestrictedTraceID::romancing_saga:
romancing_saga::SetupContext3Replay();
break;
case RestrictedTraceID::saint_seiya_awakening:
saint_seiya_awakening::SetupContext2Replay();
break;
@ -814,6 +828,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
case RestrictedTraceID::rise_of_kingdoms:
rise_of_kingdoms::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::romancing_saga:
romancing_saga::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::saint_seiya_awakening:
saint_seiya_awakening::SetBinaryDataDir(dataDir);
break;
@ -966,6 +983,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
case RestrictedTraceID::rise_of_kingdoms:
rise_of_kingdoms::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::romancing_saga:
romancing_saga::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::saint_seiya_awakening:
saint_seiya_awakening::SetBinaryDataDecompressCallback(callback);
break;

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

@ -46,6 +46,7 @@ angle_restricted_traces = [
"real_commando_secret_mission 1",
"real_gangster_crime 3",
"rise_of_kingdoms 4",
"romancing_saga 3",
"saint_seiya_awakening 2",
"shadow_fight_2 2",
"sniper_3d 3",

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

@ -91,6 +91,7 @@ enum class RestrictedTraceID
real_commando_secret_mission,
real_gangster_crime,
rise_of_kingdoms,
romancing_saga,
saint_seiya_awakening,
shadow_fight_2,
sniper_3d,

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

@ -0,0 +1 @@
911351845ae57dbc20c435e4a639ffb946a75fb3