Commit 463e0b19 by Paul Thomson Committed by Commit Bot

Tests: add WhatsApp trace

Test: angle_perftests --gtest_filter="*whatsapp*" Bug: b/174256233 Change-Id: Ie6abb3beae8e184633005a325c5dce51f0afff40 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2574837Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Commit-Queue: Paul Thomson <paulthomson@google.com>
parent 4accbe92
{
"src/tests/restricted_traces/.gitignore":
"054f342c8cdd27f56ef17ab2b5948bc8",
"01e347f5fab1e4160328dc53fd14bba1",
"src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1":
"2b5d6505d6a8b6f3bbfbad2c8405a89d",
"src/tests/restricted_traces/arena_of_valor.tar.gz.sha1":
......@@ -42,17 +42,19 @@
"src/tests/restricted_traces/real_commando_secret_mission.tar.gz.sha1":
"4b484dd9c53a79100ec13b6f1c86040d",
"src/tests/restricted_traces/restricted_traces.json":
"dafaefb78963b377f2d54c97b12cc9fe",
"64dc4eb7406274b240d4fd7d62c8d999",
"src/tests/restricted_traces/restricted_traces_autogen.cpp":
"18a6d71981b5dbe98bd96f1717fb1868",
"f48a37690e1595b744648151143c6921",
"src/tests/restricted_traces/restricted_traces_autogen.gni":
"d28f9ac1b9e3285c57f491fea58395af",
"2ce04e7f9dabb575c030cb554bc01ca8",
"src/tests/restricted_traces/restricted_traces_autogen.h":
"3f2c22b74d3d8ccea5ff3000115c88c9",
"07bdf473e90380c6f7b5c6e4238e1683",
"src/tests/restricted_traces/temple_run_300.tar.gz.sha1":
"0a08ce3df88cb358ccac3ac63ba04955",
"src/tests/restricted_traces/trex_200.tar.gz.sha1":
"c57dc6e28b1eaa1b3bb5dae54847966a",
"src/tests/restricted_traces/whatsapp.tar.gz.sha1":
"52603d1a43f9e501205d381c9254c07e",
"src/tests/restricted_traces/world_of_tanks_blitz.tar.gz.sha1":
"6cba9bb8542b71443f107952faddbe64"
}
\ No newline at end of file
......@@ -40,5 +40,7 @@ temple_run_300.tar.gz
temple_run_300/
trex_200.tar.gz
trex_200/
whatsapp.tar.gz
whatsapp/
world_of_tanks_blitz.tar.gz
world_of_tanks_blitz/
\ No newline at end of file
......@@ -28,6 +28,7 @@
"real_commando_secret_mission",
"temple_run_300",
"trex_200",
"whatsapp",
"world_of_tanks_blitz"
]
}
......@@ -32,6 +32,7 @@
#include "real_commando_secret_mission/real_commando_secret_mission_capture_context1.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"
#include "world_of_tanks_blitz/world_of_tanks_blitz_capture_context1.h"
namespace angle
......@@ -116,6 +117,9 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
{RestrictedTraceID::trex_200,
{trex_200::kReplayFrameStart, trex_200::kReplayFrameEnd, trex_200::kReplayDrawSurfaceWidth,
trex_200::kReplayDrawSurfaceHeight, "trex_200"}},
{RestrictedTraceID::whatsapp,
{whatsapp::kReplayFrameStart, whatsapp::kReplayFrameEnd, whatsapp::kReplayDrawSurfaceWidth,
whatsapp::kReplayDrawSurfaceHeight, "whatsapp"}},
{RestrictedTraceID::world_of_tanks_blitz,
{world_of_tanks_blitz::kReplayFrameStart, world_of_tanks_blitz::kReplayFrameEnd,
world_of_tanks_blitz::kReplayDrawSurfaceWidth, world_of_tanks_blitz::kReplayDrawSurfaceHeight,
......@@ -194,6 +198,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
case RestrictedTraceID::trex_200:
trex_200::ReplayContext1Frame(frameIndex);
break;
case RestrictedTraceID::whatsapp:
whatsapp::ReplayContext1Frame(frameIndex);
break;
case RestrictedTraceID::world_of_tanks_blitz:
world_of_tanks_blitz::ReplayContext1Frame(frameIndex);
break;
......@@ -271,6 +278,9 @@ void ResetReplay(RestrictedTraceID traceID)
case RestrictedTraceID::trex_200:
trex_200::ResetContext1Replay();
break;
case RestrictedTraceID::whatsapp:
whatsapp::ResetContext1Replay();
break;
case RestrictedTraceID::world_of_tanks_blitz:
world_of_tanks_blitz::ResetContext1Replay();
break;
......@@ -348,6 +358,9 @@ void SetupReplay(RestrictedTraceID traceID)
case RestrictedTraceID::trex_200:
trex_200::SetupContext1Replay();
break;
case RestrictedTraceID::whatsapp:
whatsapp::SetupContext1Replay();
break;
case RestrictedTraceID::world_of_tanks_blitz:
world_of_tanks_blitz::SetupContext1Replay();
break;
......@@ -425,6 +438,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
case RestrictedTraceID::trex_200:
trex_200::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::whatsapp:
whatsapp::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::world_of_tanks_blitz:
world_of_tanks_blitz::SetBinaryDataDir(dataDir);
break;
......@@ -502,6 +518,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
case RestrictedTraceID::trex_200:
trex_200::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::whatsapp:
whatsapp::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::world_of_tanks_blitz:
world_of_tanks_blitz::SetBinaryDataDecompressCallback(callback);
break;
......
......@@ -30,5 +30,6 @@ angle_restricted_traces = [
"real_commando_secret_mission 1",
"temple_run_300 1",
"trex_200 1",
"whatsapp 1",
"world_of_tanks_blitz 1",
]
......@@ -75,6 +75,7 @@ enum class RestrictedTraceID
real_commando_secret_mission,
temple_run_300,
trex_200,
whatsapp,
world_of_tanks_blitz,
InvalidEnum,
EnumCount = InvalidEnum
......
b4d1bd0b08bb07e18693e1157f8b02bf168c0a2a
\ 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