зеркало из https://github.com/AvaloniaUI/angle.git
Tests: Add Subway Surfers trace
Note this differs from the previous trace for the app, "subway_surfer_500". The previous trace is no longer compatible with the replay harness and could not be re-recorded due to using Vulkan at the time. Test: angle_perftests --gtest_filter="*subway_surfers*" Bug: angleproject:5569 Change-Id: If941a3f0e88e3e1aee7fb7db736e623f66a65de6 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2641098 Reviewed-by: Tim Van Patten <timvp@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Cody Northrop <cnorthrop@google.com>
This commit is contained in:
Родитель
535d478306
Коммит
70f493d6e6
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"src/tests/restricted_traces/.gitignore":
|
||||
"9ac846950909982052e144d0f062a5f7",
|
||||
"f8059af893e2a0b624722c1c0a4264d3",
|
||||
"src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1":
|
||||
"2b5d6505d6a8b6f3bbfbad2c8405a89d",
|
||||
"src/tests/restricted_traces/arena_of_valor.tar.gz.sha1":
|
||||
|
@ -52,15 +52,17 @@
|
|||
"src/tests/restricted_traces/real_gangster_crime.tar.gz.sha1":
|
||||
"c85be329035a760edad673eb2ca7c3f1",
|
||||
"src/tests/restricted_traces/restricted_traces.json":
|
||||
"895e8c4a44f30d6afb014115240dffa4",
|
||||
"46234fd8f771915a64937e1f2b4565ce",
|
||||
"src/tests/restricted_traces/restricted_traces_autogen.cpp":
|
||||
"3788a006a274057e90f2ac892c34e862",
|
||||
"41a9f85175b75c074cb25a2e5e0d1b2d",
|
||||
"src/tests/restricted_traces/restricted_traces_autogen.gni":
|
||||
"235b762554d6282db9026550f6dbdc86",
|
||||
"21cce03e456b86caf80be379c09f1497",
|
||||
"src/tests/restricted_traces/restricted_traces_autogen.h":
|
||||
"791ecd0e06b77f68aabf4227bcbedf85",
|
||||
"7a2f1393f2d909a707c61bfeecb62653",
|
||||
"src/tests/restricted_traces/saint_seiya_awakening.tar.gz.sha1":
|
||||
"c9cde6bdfd9096a44d5f03d905a45a4f",
|
||||
"src/tests/restricted_traces/subway_surfers.tar.gz.sha1":
|
||||
"647775e4cd6bc9969b69463c2ad99a39",
|
||||
"src/tests/restricted_traces/temple_run_300.tar.gz.sha1":
|
||||
"0a08ce3df88cb358ccac3ac63ba04955",
|
||||
"src/tests/restricted_traces/trex_200.tar.gz.sha1":
|
||||
|
|
|
@ -48,6 +48,8 @@ real_gangster_crime.tar.gz
|
|||
real_gangster_crime/
|
||||
saint_seiya_awakening.tar.gz
|
||||
saint_seiya_awakening/
|
||||
subway_surfers.tar.gz
|
||||
subway_surfers/
|
||||
temple_run_300.tar.gz
|
||||
temple_run_300/
|
||||
trex_200.tar.gz
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
"real_commando_secret_mission",
|
||||
"real_gangster_crime",
|
||||
"saint_seiya_awakening",
|
||||
"subway_surfers",
|
||||
"temple_run_300",
|
||||
"trex_200",
|
||||
"whatsapp",
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include "real_commando_secret_mission/real_commando_secret_mission_capture_context1.h"
|
||||
#include "real_gangster_crime/real_gangster_crime_capture_context3.h"
|
||||
#include "saint_seiya_awakening/saint_seiya_awakening_capture_context2.h"
|
||||
#include "subway_surfers/subway_surfers_capture_context2.h"
|
||||
#include "temple_run_300/temple_run_300_capture_context1.h"
|
||||
#include "trex_200/trex_200_capture_context1.h"
|
||||
#include "whatsapp/whatsapp_capture_context1.h"
|
||||
|
@ -139,6 +140,10 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
|
|||
{saint_seiya_awakening::kReplayFrameStart, saint_seiya_awakening::kReplayFrameEnd,
|
||||
saint_seiya_awakening::kReplayDrawSurfaceWidth,
|
||||
saint_seiya_awakening::kReplayDrawSurfaceHeight, "saint_seiya_awakening"}},
|
||||
{RestrictedTraceID::subway_surfers,
|
||||
{subway_surfers::kReplayFrameStart, subway_surfers::kReplayFrameEnd,
|
||||
subway_surfers::kReplayDrawSurfaceWidth, subway_surfers::kReplayDrawSurfaceHeight,
|
||||
"subway_surfers"}},
|
||||
{RestrictedTraceID::temple_run_300,
|
||||
{temple_run_300::kReplayFrameStart, temple_run_300::kReplayFrameEnd,
|
||||
temple_run_300::kReplayDrawSurfaceWidth, temple_run_300::kReplayDrawSurfaceHeight,
|
||||
|
@ -243,6 +248,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
|
|||
case RestrictedTraceID::saint_seiya_awakening:
|
||||
saint_seiya_awakening::ReplayContext2Frame(frameIndex);
|
||||
break;
|
||||
case RestrictedTraceID::subway_surfers:
|
||||
subway_surfers::ReplayContext2Frame(frameIndex);
|
||||
break;
|
||||
case RestrictedTraceID::temple_run_300:
|
||||
temple_run_300::ReplayContext1Frame(frameIndex);
|
||||
break;
|
||||
|
@ -344,6 +352,9 @@ void ResetReplay(RestrictedTraceID traceID)
|
|||
case RestrictedTraceID::saint_seiya_awakening:
|
||||
saint_seiya_awakening::ResetContext2Replay();
|
||||
break;
|
||||
case RestrictedTraceID::subway_surfers:
|
||||
subway_surfers::ResetContext2Replay();
|
||||
break;
|
||||
case RestrictedTraceID::temple_run_300:
|
||||
temple_run_300::ResetContext1Replay();
|
||||
break;
|
||||
|
@ -445,6 +456,9 @@ void SetupReplay(RestrictedTraceID traceID)
|
|||
case RestrictedTraceID::saint_seiya_awakening:
|
||||
saint_seiya_awakening::SetupContext2Replay();
|
||||
break;
|
||||
case RestrictedTraceID::subway_surfers:
|
||||
subway_surfers::SetupContext2Replay();
|
||||
break;
|
||||
case RestrictedTraceID::temple_run_300:
|
||||
temple_run_300::SetupContext1Replay();
|
||||
break;
|
||||
|
@ -546,6 +560,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
|
|||
case RestrictedTraceID::saint_seiya_awakening:
|
||||
saint_seiya_awakening::SetBinaryDataDir(dataDir);
|
||||
break;
|
||||
case RestrictedTraceID::subway_surfers:
|
||||
subway_surfers::SetBinaryDataDir(dataDir);
|
||||
break;
|
||||
case RestrictedTraceID::temple_run_300:
|
||||
temple_run_300::SetBinaryDataDir(dataDir);
|
||||
break;
|
||||
|
@ -647,6 +664,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
|
|||
case RestrictedTraceID::saint_seiya_awakening:
|
||||
saint_seiya_awakening::SetBinaryDataDecompressCallback(callback);
|
||||
break;
|
||||
case RestrictedTraceID::subway_surfers:
|
||||
subway_surfers::SetBinaryDataDecompressCallback(callback);
|
||||
break;
|
||||
case RestrictedTraceID::temple_run_300:
|
||||
temple_run_300::SetBinaryDataDecompressCallback(callback);
|
||||
break;
|
||||
|
|
|
@ -34,6 +34,7 @@ angle_restricted_traces = [
|
|||
"real_commando_secret_mission 1",
|
||||
"real_gangster_crime 3",
|
||||
"saint_seiya_awakening 2",
|
||||
"subway_surfers 2",
|
||||
"temple_run_300 1",
|
||||
"trex_200 1",
|
||||
"whatsapp 1",
|
||||
|
|
|
@ -79,6 +79,7 @@ enum class RestrictedTraceID
|
|||
real_commando_secret_mission,
|
||||
real_gangster_crime,
|
||||
saint_seiya_awakening,
|
||||
subway_surfers,
|
||||
temple_run_300,
|
||||
trex_200,
|
||||
whatsapp,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
b9f386dc76f152e612d60e987ff30cf4507897e6
|
Загрузка…
Ссылка в новой задаче