summaryrefslogtreecommitdiff
path: root/chromium/components/viz/client/BUILD.gn
blob: 4bbeeb832aa6ecef3037f7712c3cdb4ad3c27906 (plain)
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
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//components/viz/viz.gni")

viz_component("client") {
  sources = [
    "client_layer_tree_frame_sink.cc",
    "client_layer_tree_frame_sink.h",
    "frame_eviction_manager.cc",
    "frame_eviction_manager.h",
    "frame_evictor.cc",
    "frame_evictor.h",
    "hit_test_data_provider.h",
    "hit_test_data_provider_draw_quad.cc",
    "hit_test_data_provider_draw_quad.h",
    "local_surface_id_provider.cc",
    "local_surface_id_provider.h",
  ]

  defines = [ "VIZ_CLIENT_IMPLEMENTATION" ]

  public_deps = [
    "//base",
    "//cc",
    "//components/viz/common",
    "//mojo/public/cpp/bindings",
    "//services/viz/public/interfaces",
  ]
}

viz_source_set("unit_tests") {
  testonly = true
  sources = [
    "client_layer_tree_frame_sink_unittest.cc",
    "hit_test_data_provider_draw_quad_unittest.cc",
  ]

  deps = [
    ":client",
    "//base",
    "//base/test:test_support",
    "//cc:test_support",
    "//components/viz/client",
    "//components/viz/test:test_support",
    "//mojo/public/cpp/bindings",
    "//services/viz/public/interfaces",
    "//testing/gtest",
  ]
}