1# Copyright 2017 The Chromium 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
5import("//components/viz/viz.gni")
6
7viz_component("client") {
8  sources = [
9    "client_resource_provider.cc",
10    "client_resource_provider.h",
11    "frame_eviction_manager.cc",
12    "frame_eviction_manager.h",
13    "frame_evictor.cc",
14    "frame_evictor.h",
15    "shared_bitmap_reporter.cc",
16    "shared_bitmap_reporter.h",
17  ]
18
19  defines = [ "VIZ_CLIENT_IMPLEMENTATION" ]
20
21  public_deps = [
22    "//base",
23    "//components/viz/common",
24    "//mojo/public/cpp/system",
25    "//skia",
26  ]
27  deps = [
28    "//cc/base",
29    "//gpu/command_buffer/client:gles2_interface",
30    "//gpu/command_buffer/client:raster_interface",
31  ]
32}
33
34viz_source_set("unit_tests") {
35  testonly = true
36  sources = [
37    "client_resource_provider_unittest.cc",
38    "frame_eviction_manager_unittest.cc",
39  ]
40
41  deps = [
42    ":client",
43    "//base",
44    "//base/test:test_support",
45    "//components/viz/client",
46    "//components/viz/test:test_support",
47    "//mojo/public/cpp/bindings",
48    "//services/viz/public/mojom",
49    "//testing/gmock",
50    "//testing/gtest",
51  ]
52}
53