Commit 6507c1ed by Cody Northrop Committed by Commit Bot

Tests: Add Clash of Clans trace

Note: Hand edits required to compile this trace. ANGLE_REPLAY_EXPORT was removed from each of the entry points in the header. See build logs in patch set 1 of this CL for full output. Test: angle_perftests --gtest_filter="*clash_of_clans*" Bug: b/172626835 Change-Id: I63bab8f059a2c73c0a2fcd5b70fd92abf3bd4650 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2521180 Commit-Queue: Cody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarCourtney Goeltzenleuchter <courtneygo@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 156c227d
{ {
"src/tests/restricted_traces/.gitignore": "src/tests/restricted_traces/.gitignore":
"ddaa06125884442e2ed1d0885d9bdc02", "737ec95dcd9772d5c3429da279f0e008",
"src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1": "src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1":
"44fc5437c4a84012e338b3da4b6fc28a", "44fc5437c4a84012e338b3da4b6fc28a",
"src/tests/restricted_traces/arena_of_valor.tar.gz.sha1": "src/tests/restricted_traces/arena_of_valor.tar.gz.sha1":
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
"a6b023409f36ca174b890dbeb842da7e", "a6b023409f36ca174b890dbeb842da7e",
"src/tests/restricted_traces/candy_crush_500.tar.gz.sha1": "src/tests/restricted_traces/candy_crush_500.tar.gz.sha1":
"55de8a400b02e570ff2380436bda269d", "55de8a400b02e570ff2380436bda269d",
"src/tests/restricted_traces/clash_of_clans.tar.gz.sha1":
"3005ccf17961e0fd2adb2ea43329a26a",
"src/tests/restricted_traces/cod_mobile.tar.gz.sha1": "src/tests/restricted_traces/cod_mobile.tar.gz.sha1":
"dffd3bed0d0e53481f43b414309bf152", "dffd3bed0d0e53481f43b414309bf152",
"src/tests/restricted_traces/dragon_ball_legends.tar.gz.sha1": "src/tests/restricted_traces/dragon_ball_legends.tar.gz.sha1":
...@@ -34,13 +36,13 @@ ...@@ -34,13 +36,13 @@
"src/tests/restricted_traces/pubg_mobile_lite.tar.gz.sha1": "src/tests/restricted_traces/pubg_mobile_lite.tar.gz.sha1":
"07c3f467603d4d00bdae2bfed121da8d", "07c3f467603d4d00bdae2bfed121da8d",
"src/tests/restricted_traces/restricted_traces.json": "src/tests/restricted_traces/restricted_traces.json":
"1d885a202e69b31e10213da68979c539", "2e5e53faaaffae07d60240b3623ab56b",
"src/tests/restricted_traces/restricted_traces_autogen.cpp": "src/tests/restricted_traces/restricted_traces_autogen.cpp":
"8eeff2f2f4788b5f3764c3bcfa325285", "43a0970260ded29d5fd80c5983ea3cdd",
"src/tests/restricted_traces/restricted_traces_autogen.gni": "src/tests/restricted_traces/restricted_traces_autogen.gni":
"cb1e3a2d827912765d824e99144ad70c", "34974304d5e27cbd20d8d7f32ba3be89",
"src/tests/restricted_traces/restricted_traces_autogen.h": "src/tests/restricted_traces/restricted_traces_autogen.h":
"d8e7c186631c9b35312c7a399862e332", "51f08881bc37a651613c169f45559b93",
"src/tests/restricted_traces/temple_run_300.tar.gz.sha1": "src/tests/restricted_traces/temple_run_300.tar.gz.sha1":
"77475b0186ee0380eeb9db47433d0457", "77475b0186ee0380eeb9db47433d0457",
"src/tests/restricted_traces/trex_200.tar.gz.sha1": "src/tests/restricted_traces/trex_200.tar.gz.sha1":
......
...@@ -6,6 +6,8 @@ brawl_stars.tar.gz ...@@ -6,6 +6,8 @@ brawl_stars.tar.gz
brawl_stars/ brawl_stars/
candy_crush_500.tar.gz candy_crush_500.tar.gz
candy_crush_500/ candy_crush_500/
clash_of_clans.tar.gz
clash_of_clans/
cod_mobile.tar.gz cod_mobile.tar.gz
cod_mobile/ cod_mobile/
dragon_ball_legends.tar.gz dragon_ball_legends.tar.gz
......
d52307863a007a4a8d1a885f32a01d78b1b80653
\ No newline at end of file
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
"arena_of_valor", "arena_of_valor",
"brawl_stars", "brawl_stars",
"candy_crush_500", "candy_crush_500",
"clash_of_clans",
"cod_mobile", "cod_mobile",
"dragon_ball_legends", "dragon_ball_legends",
"egypt_1500", "egypt_1500",
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include "arena_of_valor/arena_of_valor_capture_context3.h" #include "arena_of_valor/arena_of_valor_capture_context3.h"
#include "brawl_stars/brawl_stars_capture_context2.h" #include "brawl_stars/brawl_stars_capture_context2.h"
#include "candy_crush_500/candy_crush_500_capture_context1.h" #include "candy_crush_500/candy_crush_500_capture_context1.h"
#include "clash_of_clans/clash_of_clans_capture_context2.h"
#include "cod_mobile/cod_mobile_capture_context4.h" #include "cod_mobile/cod_mobile_capture_context4.h"
#include "dragon_ball_legends/dragon_ball_legends_capture_context3.h" #include "dragon_ball_legends/dragon_ball_legends_capture_context3.h"
#include "egypt_1500/egypt_1500_capture_context6.h" #include "egypt_1500/egypt_1500_capture_context6.h"
...@@ -50,6 +51,10 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = { ...@@ -50,6 +51,10 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
{candy_crush_500::kReplayFrameStart, candy_crush_500::kReplayFrameEnd, {candy_crush_500::kReplayFrameStart, candy_crush_500::kReplayFrameEnd,
candy_crush_500::kReplayDrawSurfaceWidth, candy_crush_500::kReplayDrawSurfaceHeight, candy_crush_500::kReplayDrawSurfaceWidth, candy_crush_500::kReplayDrawSurfaceHeight,
"candy_crush_500"}}, "candy_crush_500"}},
{RestrictedTraceID::clash_of_clans,
{clash_of_clans::kReplayFrameStart, clash_of_clans::kReplayFrameEnd,
clash_of_clans::kReplayDrawSurfaceWidth, clash_of_clans::kReplayDrawSurfaceHeight,
"clash_of_clans"}},
{RestrictedTraceID::cod_mobile, {RestrictedTraceID::cod_mobile,
{cod_mobile::kReplayFrameStart, cod_mobile::kReplayFrameEnd, {cod_mobile::kReplayFrameStart, cod_mobile::kReplayFrameEnd,
cod_mobile::kReplayDrawSurfaceWidth, cod_mobile::kReplayDrawSurfaceHeight, "cod_mobile"}}, cod_mobile::kReplayDrawSurfaceWidth, cod_mobile::kReplayDrawSurfaceHeight, "cod_mobile"}},
...@@ -124,6 +129,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex) ...@@ -124,6 +129,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
case RestrictedTraceID::candy_crush_500: case RestrictedTraceID::candy_crush_500:
candy_crush_500::ReplayContext1Frame(frameIndex); candy_crush_500::ReplayContext1Frame(frameIndex);
break; break;
case RestrictedTraceID::clash_of_clans:
clash_of_clans::ReplayContext2Frame(frameIndex);
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::ReplayContext4Frame(frameIndex); cod_mobile::ReplayContext4Frame(frameIndex);
break; break;
...@@ -189,6 +197,9 @@ void ResetReplay(RestrictedTraceID traceID) ...@@ -189,6 +197,9 @@ void ResetReplay(RestrictedTraceID traceID)
case RestrictedTraceID::candy_crush_500: case RestrictedTraceID::candy_crush_500:
candy_crush_500::ResetContext1Replay(); candy_crush_500::ResetContext1Replay();
break; break;
case RestrictedTraceID::clash_of_clans:
clash_of_clans::ResetContext2Replay();
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::ResetContext4Replay(); cod_mobile::ResetContext4Replay();
break; break;
...@@ -254,6 +265,9 @@ void SetupReplay(RestrictedTraceID traceID) ...@@ -254,6 +265,9 @@ void SetupReplay(RestrictedTraceID traceID)
case RestrictedTraceID::candy_crush_500: case RestrictedTraceID::candy_crush_500:
candy_crush_500::SetupContext1Replay(); candy_crush_500::SetupContext1Replay();
break; break;
case RestrictedTraceID::clash_of_clans:
clash_of_clans::SetupContext2Replay();
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::SetupContext4Replay(); cod_mobile::SetupContext4Replay();
break; break;
...@@ -319,6 +333,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir) ...@@ -319,6 +333,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
case RestrictedTraceID::candy_crush_500: case RestrictedTraceID::candy_crush_500:
candy_crush_500::SetBinaryDataDir(dataDir); candy_crush_500::SetBinaryDataDir(dataDir);
break; break;
case RestrictedTraceID::clash_of_clans:
clash_of_clans::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::SetBinaryDataDir(dataDir); cod_mobile::SetBinaryDataDir(dataDir);
break; break;
...@@ -384,6 +401,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba ...@@ -384,6 +401,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
case RestrictedTraceID::candy_crush_500: case RestrictedTraceID::candy_crush_500:
candy_crush_500::SetBinaryDataDecompressCallback(callback); candy_crush_500::SetBinaryDataDecompressCallback(callback);
break; break;
case RestrictedTraceID::clash_of_clans:
clash_of_clans::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::cod_mobile: case RestrictedTraceID::cod_mobile:
cod_mobile::SetBinaryDataDecompressCallback(callback); cod_mobile::SetBinaryDataDecompressCallback(callback);
break; break;
......
...@@ -13,6 +13,7 @@ angle_restricted_traces = [ ...@@ -13,6 +13,7 @@ angle_restricted_traces = [
"arena_of_valor 3", "arena_of_valor 3",
"brawl_stars 2", "brawl_stars 2",
"candy_crush_500 1", "candy_crush_500 1",
"clash_of_clans 2",
"cod_mobile 4", "cod_mobile 4",
"dragon_ball_legends 3", "dragon_ball_legends 3",
"egypt_1500 6", "egypt_1500 6",
......
...@@ -44,6 +44,7 @@ enum class RestrictedTraceID ...@@ -44,6 +44,7 @@ enum class RestrictedTraceID
arena_of_valor, arena_of_valor,
brawl_stars, brawl_stars,
candy_crush_500, candy_crush_500,
clash_of_clans,
cod_mobile, cod_mobile,
dragon_ball_legends, dragon_ball_legends,
egypt_1500, 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