Commit 8dae4007 by Cody Northrop Committed by Commit Bot

Tests: Add Worms Zone io trace

Test: angle_perftests --gtest_filter="*worms_zone_io*" TBR: jmadill@google.com,timvp@google.com Bug: angleproject:5625 Change-Id: I38bf148409aec4ae15bdf0759676518f44a98359 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2681835Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent 580961fb
{ {
"src/tests/restricted_traces/.gitignore": "src/tests/restricted_traces/.gitignore":
"376ef2d792116ed829dfc377b437b87e", "224de327a8636a1b4fe4a8f6d4fbff6c",
"src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1": "src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1":
"2b5d6505d6a8b6f3bbfbad2c8405a89d", "2b5d6505d6a8b6f3bbfbad2c8405a89d",
"src/tests/restricted_traces/arena_of_valor.tar.gz.sha1": "src/tests/restricted_traces/arena_of_valor.tar.gz.sha1":
...@@ -76,13 +76,13 @@ ...@@ -76,13 +76,13 @@
"src/tests/restricted_traces/real_gangster_crime.tar.gz.sha1": "src/tests/restricted_traces/real_gangster_crime.tar.gz.sha1":
"c85be329035a760edad673eb2ca7c3f1", "c85be329035a760edad673eb2ca7c3f1",
"src/tests/restricted_traces/restricted_traces.json": "src/tests/restricted_traces/restricted_traces.json":
"dec04d1916b0649c0b595a7cd3979332", "9e97a6a70bf94f42a6cebc9c8395f2bd",
"src/tests/restricted_traces/restricted_traces_autogen.cpp": "src/tests/restricted_traces/restricted_traces_autogen.cpp":
"d05c64d18b14a9630f503f28eefa9354", "978fdfc3acc84eb680d71d996d9504ba",
"src/tests/restricted_traces/restricted_traces_autogen.gni": "src/tests/restricted_traces/restricted_traces_autogen.gni":
"9774fe958933680dd4aefd35c30d2d25", "d89a842d1054f9fdabf8e50345340c36",
"src/tests/restricted_traces/restricted_traces_autogen.h": "src/tests/restricted_traces/restricted_traces_autogen.h":
"b1ede968b37ffe7ade00b41ea8c268be", "c057f2940dad5c895a4fa996de2b8820",
"src/tests/restricted_traces/rise_of_kingdoms.tar.gz.sha1": "src/tests/restricted_traces/rise_of_kingdoms.tar.gz.sha1":
"d4618f857c44f0dfa642ae3af8f161d9", "d4618f857c44f0dfa642ae3af8f161d9",
"src/tests/restricted_traces/romancing_saga.tar.gz.sha1": "src/tests/restricted_traces/romancing_saga.tar.gz.sha1":
...@@ -106,5 +106,7 @@ ...@@ -106,5 +106,7 @@
"src/tests/restricted_traces/world_of_tanks_blitz.tar.gz.sha1": "src/tests/restricted_traces/world_of_tanks_blitz.tar.gz.sha1":
"6cba9bb8542b71443f107952faddbe64", "6cba9bb8542b71443f107952faddbe64",
"src/tests/restricted_traces/world_war_doh.tar.gz.sha1": "src/tests/restricted_traces/world_war_doh.tar.gz.sha1":
"ac16fcec4e9514e8b4cc952f91f37f60" "ac16fcec4e9514e8b4cc952f91f37f60",
"src/tests/restricted_traces/worms_zone_io.tar.gz.sha1":
"d2a7f98823d8d9f6581fba94f041a9cc"
} }
\ No newline at end of file
...@@ -94,3 +94,5 @@ world_of_tanks_blitz.tar.gz ...@@ -94,3 +94,5 @@ world_of_tanks_blitz.tar.gz
world_of_tanks_blitz/ world_of_tanks_blitz/
world_war_doh.tar.gz world_war_doh.tar.gz
world_war_doh/ world_war_doh/
worms_zone_io.tar.gz
worms_zone_io/
\ No newline at end of file
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
"trex_200", "trex_200",
"whatsapp", "whatsapp",
"world_of_tanks_blitz", "world_of_tanks_blitz",
"world_war_doh" "world_war_doh",
"worms_zone_io"
] ]
} }
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
#include "whatsapp/whatsapp_capture_context1.h" #include "whatsapp/whatsapp_capture_context1.h"
#include "world_of_tanks_blitz/world_of_tanks_blitz_capture_context1.h" #include "world_of_tanks_blitz/world_of_tanks_blitz_capture_context1.h"
#include "world_war_doh/world_war_doh_capture_context2.h" #include "world_war_doh/world_war_doh_capture_context2.h"
#include "worms_zone_io/worms_zone_io_capture_context1.h"
namespace angle namespace angle
{ {
...@@ -240,7 +241,11 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = { ...@@ -240,7 +241,11 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
{RestrictedTraceID::world_war_doh, {RestrictedTraceID::world_war_doh,
{world_war_doh::kReplayFrameStart, world_war_doh::kReplayFrameEnd, {world_war_doh::kReplayFrameStart, world_war_doh::kReplayFrameEnd,
world_war_doh::kReplayDrawSurfaceWidth, world_war_doh::kReplayDrawSurfaceHeight, world_war_doh::kReplayDrawSurfaceWidth, world_war_doh::kReplayDrawSurfaceHeight,
"world_war_doh"}}}; "world_war_doh"}},
{RestrictedTraceID::worms_zone_io,
{worms_zone_io::kReplayFrameStart, worms_zone_io::kReplayFrameEnd,
worms_zone_io::kReplayDrawSurfaceWidth, worms_zone_io::kReplayDrawSurfaceHeight,
"worms_zone_io"}}};
} }
const TraceInfo &GetTraceInfo(RestrictedTraceID traceID) const TraceInfo &GetTraceInfo(RestrictedTraceID traceID)
...@@ -396,6 +401,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex) ...@@ -396,6 +401,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
case RestrictedTraceID::world_war_doh: case RestrictedTraceID::world_war_doh:
world_war_doh::ReplayContext2Frame(frameIndex); world_war_doh::ReplayContext2Frame(frameIndex);
break; break;
case RestrictedTraceID::worms_zone_io:
worms_zone_io::ReplayContext1Frame(frameIndex);
break;
default: default:
fprintf(stderr, "Error in switch.\n"); fprintf(stderr, "Error in switch.\n");
assert(0); assert(0);
...@@ -551,6 +559,9 @@ void ResetReplay(RestrictedTraceID traceID) ...@@ -551,6 +559,9 @@ void ResetReplay(RestrictedTraceID traceID)
case RestrictedTraceID::world_war_doh: case RestrictedTraceID::world_war_doh:
world_war_doh::ResetContext2Replay(); world_war_doh::ResetContext2Replay();
break; break;
case RestrictedTraceID::worms_zone_io:
worms_zone_io::ResetContext1Replay();
break;
default: default:
fprintf(stderr, "Error in switch.\n"); fprintf(stderr, "Error in switch.\n");
assert(0); assert(0);
...@@ -706,6 +717,9 @@ void SetupReplay(RestrictedTraceID traceID) ...@@ -706,6 +717,9 @@ void SetupReplay(RestrictedTraceID traceID)
case RestrictedTraceID::world_war_doh: case RestrictedTraceID::world_war_doh:
world_war_doh::SetupContext2Replay(); world_war_doh::SetupContext2Replay();
break; break;
case RestrictedTraceID::worms_zone_io:
worms_zone_io::SetupContext1Replay();
break;
default: default:
fprintf(stderr, "Error in switch.\n"); fprintf(stderr, "Error in switch.\n");
assert(0); assert(0);
...@@ -861,6 +875,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir) ...@@ -861,6 +875,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
case RestrictedTraceID::world_war_doh: case RestrictedTraceID::world_war_doh:
world_war_doh::SetBinaryDataDir(dataDir); world_war_doh::SetBinaryDataDir(dataDir);
break; break;
case RestrictedTraceID::worms_zone_io:
worms_zone_io::SetBinaryDataDir(dataDir);
break;
default: default:
fprintf(stderr, "Error in switch.\n"); fprintf(stderr, "Error in switch.\n");
assert(0); assert(0);
...@@ -1016,6 +1033,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba ...@@ -1016,6 +1033,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
case RestrictedTraceID::world_war_doh: case RestrictedTraceID::world_war_doh:
world_war_doh::SetBinaryDataDecompressCallback(callback); world_war_doh::SetBinaryDataDecompressCallback(callback);
break; break;
case RestrictedTraceID::worms_zone_io:
worms_zone_io::SetBinaryDataDecompressCallback(callback);
break;
default: default:
fprintf(stderr, "Error in switch.\n"); fprintf(stderr, "Error in switch.\n");
assert(0); assert(0);
......
...@@ -57,4 +57,5 @@ angle_restricted_traces = [ ...@@ -57,4 +57,5 @@ angle_restricted_traces = [
"whatsapp 1", "whatsapp 1",
"world_of_tanks_blitz 1", "world_of_tanks_blitz 1",
"world_war_doh 2", "world_war_doh 2",
"worms_zone_io 1",
] ]
...@@ -102,6 +102,7 @@ enum class RestrictedTraceID ...@@ -102,6 +102,7 @@ enum class RestrictedTraceID
whatsapp, whatsapp,
world_of_tanks_blitz, world_of_tanks_blitz,
world_war_doh, world_war_doh,
worms_zone_io,
InvalidEnum, InvalidEnum,
EnumCount = InvalidEnum EnumCount = InvalidEnum
}; };
......
21e33c3db742ac7012ab7bf37283e43da61baf1f
\ No newline at end of file
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