Commit 637786a9 by Cody Northrop Committed by Commit Bot

Tests: Add Arena of Valor trace

Test: angle_perftest --gtest_filter="*arena*" Bug: b/170994774 Change-Id: I44c81c539da975fefcf085d6fc12f8508826277f Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2477440Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCourtney Goeltzenleuchter <courtneygo@google.com> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent d8529380
{
"src/tests/restricted_traces/.gitignore":
"e029ca2a15934ba1e6bc2d4aef9f2112",
"324d4adc8f7e4c2d7ba71f21092010cd",
"src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1":
"44fc5437c4a84012e338b3da4b6fc28a",
"src/tests/restricted_traces/arena_of_valor.tar.gz.sha1":
"d271919091590d490ea68b9223b7eb06",
"src/tests/restricted_traces/candy_crush_500.tar.gz.sha1":
"55de8a400b02e570ff2380436bda269d",
"src/tests/restricted_traces/cod_mobile.tar.gz.sha1":
......@@ -18,13 +20,13 @@
"src/tests/restricted_traces/nba2k20_800.tar.gz.sha1":
"03df0dcf41c18bc59edfc0b088ca4a87",
"src/tests/restricted_traces/restricted_traces.json":
"7ce556105923b7bcf5d81ee99625a040",
"82aaa1b40ff66196e3f61a96168d552e",
"src/tests/restricted_traces/restricted_traces_autogen.cpp":
"d310de925bb7aa8347ff4d2378d9816f",
"245d2c9473e36b66be984f38a24b7599",
"src/tests/restricted_traces/restricted_traces_autogen.gni":
"2e79405fce094f458c9f36defecfa2cd",
"4f4415e57d4f5dc4314171cbd1442f35",
"src/tests/restricted_traces/restricted_traces_autogen.h":
"86dc00986d282c3b032fbbb0a81662b6",
"3ee6e9d7bedddb29ac91f835d635e8bd",
"src/tests/restricted_traces/temple_run_300.tar.gz.sha1":
"77475b0186ee0380eeb9db47433d0457",
"src/tests/restricted_traces/trex_200.tar.gz.sha1":
......
angry_birds_2_1500.tar.gz
angry_birds_2_1500/
arena_of_valor.tar.gz
arena_of_valor/
candy_crush_500.tar.gz
candy_crush_500/
cod_mobile.tar.gz
......
7e5036aeb7990bd1d404e32dc75501622e9db817
\ No newline at end of file
......@@ -8,6 +8,7 @@
],
"traces": [
"angry_birds_2_1500",
"arena_of_valor",
"candy_crush_500",
"cod_mobile",
"egypt_1500",
......
......@@ -12,6 +12,7 @@
#include "common/PackedEnums.h"
#include "angry_birds_2_1500/angry_birds_2_1500_capture_context2.h"
#include "arena_of_valor/arena_of_valor_capture_context3.h"
#include "candy_crush_500/candy_crush_500_capture_context1.h"
#include "cod_mobile/cod_mobile_capture_context4.h"
#include "egypt_1500/egypt_1500_capture_context6.h"
......@@ -30,6 +31,10 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
{angry_birds_2_1500::kReplayFrameStart, angry_birds_2_1500::kReplayFrameEnd,
angry_birds_2_1500::kReplayDrawSurfaceWidth, angry_birds_2_1500::kReplayDrawSurfaceHeight,
"angry_birds_2_1500"}},
{RestrictedTraceID::arena_of_valor,
{arena_of_valor::kReplayFrameStart, arena_of_valor::kReplayFrameEnd,
arena_of_valor::kReplayDrawSurfaceWidth, arena_of_valor::kReplayDrawSurfaceHeight,
"arena_of_valor"}},
{RestrictedTraceID::candy_crush_500,
{candy_crush_500::kReplayFrameStart, candy_crush_500::kReplayFrameEnd,
candy_crush_500::kReplayDrawSurfaceWidth, candy_crush_500::kReplayDrawSurfaceHeight,
......@@ -72,6 +77,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
case RestrictedTraceID::angry_birds_2_1500:
angry_birds_2_1500::ReplayContext2Frame(frameIndex);
break;
case RestrictedTraceID::arena_of_valor:
arena_of_valor::ReplayContext3Frame(frameIndex);
break;
case RestrictedTraceID::candy_crush_500:
candy_crush_500::ReplayContext1Frame(frameIndex);
break;
......@@ -110,6 +118,9 @@ void ResetReplay(RestrictedTraceID traceID)
case RestrictedTraceID::angry_birds_2_1500:
angry_birds_2_1500::ResetContext2Replay();
break;
case RestrictedTraceID::arena_of_valor:
arena_of_valor::ResetContext3Replay();
break;
case RestrictedTraceID::candy_crush_500:
candy_crush_500::ResetContext1Replay();
break;
......@@ -148,6 +159,9 @@ void SetupReplay(RestrictedTraceID traceID)
case RestrictedTraceID::angry_birds_2_1500:
angry_birds_2_1500::SetupContext2Replay();
break;
case RestrictedTraceID::arena_of_valor:
arena_of_valor::SetupContext3Replay();
break;
case RestrictedTraceID::candy_crush_500:
candy_crush_500::SetupContext1Replay();
break;
......@@ -186,6 +200,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
case RestrictedTraceID::angry_birds_2_1500:
angry_birds_2_1500::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::arena_of_valor:
arena_of_valor::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::candy_crush_500:
candy_crush_500::SetBinaryDataDir(dataDir);
break;
......@@ -224,6 +241,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
case RestrictedTraceID::angry_birds_2_1500:
angry_birds_2_1500::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::arena_of_valor:
arena_of_valor::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::candy_crush_500:
candy_crush_500::SetBinaryDataDecompressCallback(callback);
break;
......
......@@ -10,6 +10,7 @@
angle_restricted_traces = [
"angry_birds_2_1500 2",
"arena_of_valor 3",
"candy_crush_500 1",
"cod_mobile 4",
"egypt_1500 6",
......
......@@ -41,6 +41,7 @@ namespace angle
enum class RestrictedTraceID
{
angry_birds_2_1500,
arena_of_valor,
candy_crush_500,
cod_mobile,
egypt_1500,
......
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