• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by gen_restricted_traces.py using data from restricted_traces.json
3 //
4 // Copyright 2020 The ANGLE Project Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style license that can be
6 // found in the LICENSE file.
7 //
8 // restricted_traces_autogen: Types and enumerations for trace tests.
9 
10 #ifndef ANGLE_RESTRICTED_TRACES_AUTOGEN_H_
11 #define ANGLE_RESTRICTED_TRACES_AUTOGEN_H_
12 
13 #include <EGL/egl.h>
14 #include <KHR/khrplatform.h>
15 #include <cstdint>
16 #include <vector>
17 
18 #include "restricted_traces_export.h"
19 
20 namespace trace_angle
21 {
22 using GenericProc = void (*)();
23 using LoadProc    = GenericProc(KHRONOS_APIENTRY *)(const char *);
24 ANGLE_TRACE_LOADER_EXPORT void LoadEGL(LoadProc loadProc);
25 ANGLE_TRACE_LOADER_EXPORT void LoadGLES(LoadProc loadProc);
26 
27 static constexpr size_t kTraceInfoMaxNameLen = 128;
28 
29 static constexpr uint32_t kDefaultReplayContextClientMajorVersion = 3;
30 static constexpr uint32_t kDefaultReplayContextClientMinorVersion = 1;
31 static constexpr uint32_t kDefaultReplayDrawSurfaceColorSpace     = EGL_COLORSPACE_LINEAR;
32 
33 struct TraceInfo
34 {
35     char name[kTraceInfoMaxNameLen];
36     uint32_t contextClientMajorVersion;
37     uint32_t contextClientMinorVersion;
38     uint32_t frameEnd;
39     uint32_t frameStart;
40     uint32_t drawSurfaceWidth;
41     uint32_t drawSurfaceHeight;
42     uint32_t drawSurfaceColorSpace;
43     uint32_t displayPlatformType;
44     uint32_t displayDeviceType;
45     int configRedBits;
46     int configBlueBits;
47     int configGreenBits;
48     int configAlphaBits;
49     int configDepthBits;
50     int configStencilBits;
51     bool isBinaryDataCompressed;
52     bool areClientArraysEnabled;
53     bool isBindGeneratesResourcesEnabled;
54     bool isWebGLCompatibilityEnabled;
55     bool isRobustResourceInitEnabled;
56 };
57 
58 ANGLE_TRACE_EXPORT const TraceInfo &GetTraceInfo(const char *traceName);
59 }  // namespace trace_angle
60 
61 #endif  // ANGLE_RESTRICTED_TRACES_AUTOGEN_H_
62