~mmach/netext73/webkit2gtk

« back to all changes in this revision

Viewing changes to Source/ThirdParty/ANGLE/src/tests/perf_tests/restricted_traces/angle_trace_perf_tests.gni

  • Committer: mmach
  • Date: 2023-06-16 17:21:37 UTC
  • Revision ID: netbit73@gmail.com-20230616172137-2rqx6yr96ga9g3kp
1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2020 The ANGLE Project Authors. All rights reserved.
 
2
# Use of this source code is governed by a BSD-style license that can be
 
3
# found in the LICENSE file.
 
4
 
 
5
# This include iterates through a list of tests and rebases the files so they
 
6
# can be consumed by tests/BUILD.gn for use with TracePerfTest.cpp.
 
7
 
 
8
import("../../../../gni/angle.gni")
 
9
 
 
10
_tests = [
 
11
  "trex_200_210",
 
12
  "trex_800_810",
 
13
  "trex_900_910",
 
14
  "trex_1300_1310",
 
15
]
 
16
 
 
17
angle_trace_perf_sources = [ "perf_tests/TracePerfTest.cpp" ]
 
18
angle_trace_perf_data =
 
19
    [ "${angle_root}/src/tests/perf_tests/restricted_traces" ]
 
20
angle_trace_perf_defines = []
 
21
 
 
22
foreach(_test, _tests) {
 
23
  _test_dir = "${_test}"
 
24
  _test_ctx = "${_test_dir}/${_test}_capture_context1"
 
25
 
 
26
  # Similar to capture replay sample, use the file index for sources
 
27
  angle_trace_perf_sources +=
 
28
      rebase_path(read_file("${_test_ctx}_files.txt", "list lines"),
 
29
                  ".",
 
30
                  "perf_tests/restricted_traces/${_test_dir}") +
 
31
      [
 
32
        "perf_tests/restricted_traces/${_test_ctx}.cpp",
 
33
        "perf_tests/restricted_traces/${_test_ctx}.h",
 
34
      ]
 
35
 
 
36
  if (is_android) {
 
37
    _test_data_path = "/sdcard/chromium_tests_root/third_party/angle/src/tests/perf_tests/restricted_traces/${_test}"
 
38
  } else {
 
39
    _test_data_path = rebase_path("${_test_dir}")
 
40
  }
 
41
 
 
42
  angle_trace_perf_defines +=
 
43
      [ "ANGLE_TRACE_DATA_DIR_${_test}=\"${_test_data_path}\"" ]
 
44
}