Test: angle_perftests --gtest_filter="*happy_color*"
TBR: jmadill@google.com,timvp@google.com
Bug: angleproject:5619
Change-Id: I199c066c18412701b710eab66689107b07ec51f8
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2677219
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Cody Northrop <cnorthrop@google.com>
This commit is contained in:
Cody Northrop 2021-02-04 21:28:17 -07:00 коммит произвёл Commit Bot
Родитель ac8d780739
Коммит cf9ca55fd9
7 изменённых файлов: 32 добавлений и 5 удалений

Просмотреть файл

@ -1,6 +1,6 @@
{
"src/tests/restricted_traces/.gitignore":
"82c8f6a7d36be8aec10531dece516333",
"905586546eba20d11842c7018f9b5a21",
"src/tests/restricted_traces/angry_birds_2_1500.tar.gz.sha1":
"2b5d6505d6a8b6f3bbfbad2c8405a89d",
"src/tests/restricted_traces/arena_of_valor.tar.gz.sha1":
@ -37,6 +37,8 @@
"eccb9514e9606eb56b24cf57598e596c",
"src/tests/restricted_traces/google_maps.tar.gz.sha1":
"5d7001969619570e80e5a39b1ab8b0c4",
"src/tests/restricted_traces/happy_color.tar.gz.sha1":
"8d5a1a5a7814a7a5f4361c9d84379f96",
"src/tests/restricted_traces/hay_day.tar.gz.sha1":
"88f1d78502cf64f64e1c73228f9d5bd4",
"src/tests/restricted_traces/hearthstone.tar.gz.sha1":
@ -72,13 +74,13 @@
"src/tests/restricted_traces/real_gangster_crime.tar.gz.sha1":
"c85be329035a760edad673eb2ca7c3f1",
"src/tests/restricted_traces/restricted_traces.json":
"58e1c584bc7310567ffce2950026e25c",
"be1e1ba47922639d361867ebb01fdf10",
"src/tests/restricted_traces/restricted_traces_autogen.cpp":
"ec01c8d3e4b20b4fa1c7a92ed14af6ce",
"9fbf117aedd227ad18a3d1cbf4b8f5cc",
"src/tests/restricted_traces/restricted_traces_autogen.gni":
"5177b75810f40b45df3afc8d01eb813f",
"7c7f5a58f4f280049caf88f3fc04981f",
"src/tests/restricted_traces/restricted_traces_autogen.h":
"2e757de7e98f8bd6b7461d7520b4d0c9",
"ce4b41bffbb134cd0fff030059820554",
"src/tests/restricted_traces/saint_seiya_awakening.tar.gz.sha1":
"c9cde6bdfd9096a44d5f03d905a45a4f",
"src/tests/restricted_traces/shadow_fight_2.tar.gz.sha1":

2
src/tests/restricted_traces/.gitignore поставляемый
Просмотреть файл

@ -32,6 +32,8 @@ free_fire.tar.gz
free_fire/
google_maps.tar.gz
google_maps/
happy_color.tar.gz
happy_color/
hay_day.tar.gz
hay_day/
hearthstone.tar.gz

Просмотреть файл

@ -0,0 +1 @@
187146487bf9b644b41763b63e24e4f80e491b3d

Просмотреть файл

@ -24,6 +24,7 @@
"fifa_mobile",
"free_fire",
"google_maps",
"happy_color",
"hay_day",
"hearthstone",
"kartrider_rush",

Просмотреть файл

@ -28,6 +28,7 @@
#include "fifa_mobile/fifa_mobile_capture_context2.h"
#include "free_fire/free_fire_capture_context1.h"
#include "google_maps/google_maps_capture_context3.h"
#include "happy_color/happy_color_capture_context2.h"
#include "hay_day/hay_day_capture_context2.h"
#include "hearthstone/hearthstone_capture_context2.h"
#include "kartrider_rush/kartrider_rush_capture_context1.h"
@ -121,6 +122,9 @@ constexpr angle::PackedEnumMap<RestrictedTraceID, TraceInfo> kTraceInfos = {
{RestrictedTraceID::google_maps,
{google_maps::kReplayFrameStart, google_maps::kReplayFrameEnd,
google_maps::kReplayDrawSurfaceWidth, google_maps::kReplayDrawSurfaceHeight, "google_maps"}},
{RestrictedTraceID::happy_color,
{happy_color::kReplayFrameStart, happy_color::kReplayFrameEnd,
happy_color::kReplayDrawSurfaceWidth, happy_color::kReplayDrawSurfaceHeight, "happy_color"}},
{RestrictedTraceID::hay_day,
{hay_day::kReplayFrameStart, hay_day::kReplayFrameEnd, hay_day::kReplayDrawSurfaceWidth,
hay_day::kReplayDrawSurfaceHeight, "hay_day"}},
@ -284,6 +288,9 @@ void ReplayFrame(RestrictedTraceID traceID, uint32_t frameIndex)
case RestrictedTraceID::google_maps:
google_maps::ReplayContext3Frame(frameIndex);
break;
case RestrictedTraceID::happy_color:
happy_color::ReplayContext2Frame(frameIndex);
break;
case RestrictedTraceID::hay_day:
hay_day::ReplayContext2Frame(frameIndex);
break;
@ -427,6 +434,9 @@ void ResetReplay(RestrictedTraceID traceID)
case RestrictedTraceID::google_maps:
google_maps::ResetContext3Replay();
break;
case RestrictedTraceID::happy_color:
happy_color::ResetContext2Replay();
break;
case RestrictedTraceID::hay_day:
hay_day::ResetContext2Replay();
break;
@ -570,6 +580,9 @@ void SetupReplay(RestrictedTraceID traceID)
case RestrictedTraceID::google_maps:
google_maps::SetupContext3Replay();
break;
case RestrictedTraceID::happy_color:
happy_color::SetupContext2Replay();
break;
case RestrictedTraceID::hay_day:
hay_day::SetupContext2Replay();
break;
@ -713,6 +726,9 @@ void SetBinaryDataDir(RestrictedTraceID traceID, const char *dataDir)
case RestrictedTraceID::google_maps:
google_maps::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::happy_color:
happy_color::SetBinaryDataDir(dataDir);
break;
case RestrictedTraceID::hay_day:
hay_day::SetBinaryDataDir(dataDir);
break;
@ -856,6 +872,9 @@ void SetBinaryDataDecompressCallback(RestrictedTraceID traceID, DecompressCallba
case RestrictedTraceID::google_maps:
google_maps::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::happy_color:
happy_color::SetBinaryDataDecompressCallback(callback);
break;
case RestrictedTraceID::hay_day:
hay_day::SetBinaryDataDecompressCallback(callback);
break;

Просмотреть файл

@ -26,6 +26,7 @@ angle_restricted_traces = [
"fifa_mobile 2",
"free_fire 1",
"google_maps 3",
"happy_color 2",
"hay_day 2",
"hearthstone 2",
"kartrider_rush 1",

Просмотреть файл

@ -71,6 +71,7 @@ enum class RestrictedTraceID
fifa_mobile,
free_fire,
google_maps,
happy_color,
hay_day,
hearthstone,
kartrider_rush,