BUILD.gn 1.2 KB

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