summaryrefslogtreecommitdiff
path: root/chromium/components/viz/client/BUILD.gn
blob: 1b2f7cae0fbb5dc9e7acd6808037aa3c1108f869 (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
52
# 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_resource_provider.cc",
    "client_resource_provider.h",
    "frame_eviction_manager.cc",
    "frame_eviction_manager.h",
    "frame_evictor.cc",
    "frame_evictor.h",
    "shared_bitmap_reporter.cc",
    "shared_bitmap_reporter.h",
  ]

  defines = [ "VIZ_CLIENT_IMPLEMENTATION" ]

  public_deps = [
    "//base",
    "//components/viz/common",
    "//mojo/public/cpp/system",
    "//skia",
  ]
  deps = [
    "//cc/base",
    "//gpu/command_buffer/client:gles2_interface",
    "//gpu/command_buffer/client:raster_interface",
  ]
}

viz_source_set("unit_tests") {
  testonly = true
  sources = [
    "client_resource_provider_unittest.cc",
    "frame_eviction_manager_unittest.cc",
  ]

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