Hash :
fa74421d
Author :
Date :
2021-08-06T18:30:57
Capture/Replay: Add LoadEGL() Add LoadEGL() to gen_restricted_traces.py. This is a pre-requisite to frame capture being able to generate EGL calls, which is required for multi-context support. Bug: angleproject:5878 Change-Id: I210035aecad42173626834588bae51019deaa076 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3078994 Commit-Queue: Tim Van Patten <timvp@google.com> Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_restricted_traces.py using data from restricted_traces.json
//
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// restricted_traces_autogen: Types and enumerations for trace tests.
#ifndef ANGLE_RESTRICTED_TRACES_H_
#define ANGLE_RESTRICTED_TRACES_H_
#include <EGL/egl.h>
#include <KHR/khrplatform.h>
#include <cstdint>
#include <vector>
// See util/util_export.h for details on import/export labels.
#if !defined(ANGLE_TRACE_EXPORT)
# if defined(_WIN32)
# if defined(ANGLE_TRACE_IMPLEMENTATION)
# define ANGLE_TRACE_EXPORT __declspec(dllexport)
# else
# define ANGLE_TRACE_EXPORT __declspec(dllimport)
# endif
# elif defined(__GNUC__)
# define ANGLE_TRACE_EXPORT __attribute__((visibility("default")))
# else
# define ANGLE_TRACE_EXPORT
# endif
#endif // !defined(ANGLE_TRACE_EXPORT)
#if !defined(ANGLE_TRACE_LOADER_EXPORT)
# if defined(_WIN32)
# if defined(ANGLE_TRACE_LOADER_IMPLEMENTATION)
# define ANGLE_TRACE_LOADER_EXPORT __declspec(dllexport)
# else
# define ANGLE_TRACE_LOADER_EXPORT __declspec(dllimport)
# endif
# elif defined(__GNUC__)
# define ANGLE_TRACE_LOADER_EXPORT __attribute__((visibility("default")))
# else
# define ANGLE_TRACE_LOADER_EXPORT
# endif
#endif // !defined(ANGLE_TRACE_LOADER_EXPORT)
namespace trace_angle
{
using GenericProc = void (*)();
using LoadProc = GenericProc(KHRONOS_APIENTRY *)(const char *);
ANGLE_TRACE_LOADER_EXPORT void LoadEGL(LoadProc loadProc);
ANGLE_TRACE_LOADER_EXPORT void LoadGLES(LoadProc loadProc);
} // namespace trace_angle
namespace angle
{
enum class RestrictedTraceID
{
aliexpress,
among_us,
angry_birds_2_1500,
arena_of_valor,
asphalt_8,
avakin_life,
aztec_ruins,
beach_buggy_racing,
brawl_stars,
bricks_breaker_quest,
bubble_shooter,
bus_simulator_indonesia,
call_break_offline_card_game,
candy_crush_500,
candy_crush_soda_saga,
car_parking_multiplayer,
clash_of_clans,
clash_royale,
cod_mobile,
coin_master,
command_and_conquer_rivals,
cookie_run_kingdom,
disney_tsum_tsum,
dr_driving,
dragon_ball_legends,
dragon_raja,
efootball_pes_2021,
egypt_1500,
eight_ball_pool,
extreme_car_driving_simulator,
fallout_shelter_online,
farm_heroes_saga,
fate_grand_order,
fifa_mobile,
final_fantasy,
free_fire,
gardenscapes,
genshin_impact,
google_maps,
happy_color,
hay_day,
hearthstone,
higgs_domino_island,
hill_climb_racing,
homescapes,
idle_heroes,
junes_journey,
kartrider_rush,
klondike_adventures,
league_of_legends_wild_rift,
lego_legacy,
lineage_m,
ludo_king,
magic_tiles_3,
manhattan_10,
manhattan_31,
mario_kart_tour,
marvel_contest_of_champions,
messenger_lite,
minecraft,
mobile_legends,
nba2k20_800,
one_punch_man,
plants_vs_zombies_2,
pokemon_go,
professional_baseball_spirits,
pubg_mobile_battle_royale,
pubg_mobile_lite,
pubg_mobile_skydive,
ragnarok_m_eternal_love,
raid_shadow_legends,
real_commando_secret_mission,
real_cricket_20,
real_gangster_crime,
rise_of_kingdoms,
romancing_saga,
rope_hero_vice_town,
saint_seiya_awakening,
sakura_school_simulator,
shadow_fight_2,
slingshot_test1,
slingshot_test2,
sniper_3d,
sonic_the_hedgehog,
standoff_2,
subway_princess_runner,
subway_surfers,
summoners_war,
talking_tom_hero_dash,
temple_run_2,
temple_run_300,
toon_blast,
township,
trex_200,
whatsapp,
world_of_tanks_blitz,
world_war_doh,
worms_zone_io,
InvalidEnum,
EnumCount = InvalidEnum
};
static constexpr size_t kTraceInfoMaxNameLen = 32;
static constexpr uint32_t kDefaultReplayContextClientMajorVersion = 3;
static constexpr uint32_t kDefaultReplayContextClientMinorVersion = 1;
static constexpr uint32_t kDefaultReplayDrawSurfaceColorSpace = EGL_COLORSPACE_LINEAR;
struct TraceInfo
{
uint32_t contextClientMajorVersion;
uint32_t contextClientMinorVersion;
uint32_t startFrame;
uint32_t endFrame;
uint32_t drawSurfaceWidth;
uint32_t drawSurfaceHeight;
uint32_t drawSurfaceColorSpace;
char name[kTraceInfoMaxNameLen];
};
ANGLE_TRACE_EXPORT const TraceInfo &GetTraceInfo(RestrictedTraceID traceID);
} // namespace angle
#endif // ANGLE_RESTRICTED_TRACES_H_