123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- # 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("//build/config/ui.gni")
- import("//components/viz/viz.gni")
- import("//testing/libfuzzer/fuzzer_test.gni")
- viz_component("host") {
- defines = [ "VIZ_HOST_IMPLEMENTATION" ]
- sources = [
- "client_frame_sink_video_capturer.cc",
- "client_frame_sink_video_capturer.h",
- "compositing_mode_reporter_impl.cc",
- "compositing_mode_reporter_impl.h",
- "gpu_client.cc",
- "gpu_client.h",
- "gpu_client_delegate.h",
- "gpu_host_impl.cc",
- "gpu_host_impl.h",
- "hit_test/hit_test_query.cc",
- "hit_test/hit_test_query.h",
- "hit_test/hit_test_region_observer.h",
- "host_display_client.cc",
- "host_display_client.h",
- "host_frame_sink_client.h",
- "host_frame_sink_manager.cc",
- "host_frame_sink_manager.h",
- "host_gpu_memory_buffer_manager.cc",
- "host_gpu_memory_buffer_manager.h",
- "renderer_settings_creation.cc",
- "renderer_settings_creation.h",
- "viz_host_export.h",
- ]
- if (is_win) {
- sources += [
- "layered_window_updater_impl.cc",
- "layered_window_updater_impl.h",
- ]
- }
- deps = [
- "//base",
- "//build:chromeos_buildflags",
- "//gpu/ipc/client",
- "//gpu/ipc/common",
- "//services/viz/privileged/mojom",
- "//ui/base",
- "//ui/gfx",
- ]
- public_deps = [
- "//components/viz/common",
- "//gpu/command_buffer/client",
- "//gpu/ipc/host",
- "//services/viz/privileged/mojom/compositing",
- "//services/viz/public/mojom",
- "//ui/gfx/geometry",
- ]
- if (is_mac) {
- deps += [ "//ui/accelerated_widget_mac" ]
- }
- if (use_ozone) {
- deps += [ "//ui/ozone" ]
- }
- }
- viz_source_set("unit_tests") {
- testonly = true
- sources = [
- "hit_test/hit_test_query_unittest.cc",
- "host_frame_sink_manager_unittest.cc",
- "host_gpu_memory_buffer_manager_unittest.cc",
- ]
- deps = [
- ":host",
- "//base",
- "//base/test:test_support",
- "//build:chromeos_buildflags",
- "//components/viz/test:test_support",
- "//gpu",
- "//gpu/ipc/host",
- "//media:media_buildflags",
- "//mojo/public/cpp/bindings",
- "//services/viz/privileged/mojom",
- "//services/viz/public/mojom",
- "//testing/gmock",
- "//testing/gtest",
- ]
- if (use_ozone) {
- deps += [ "//ui/ozone" ]
- }
- }
- fuzzer_test("hit_test_query_fuzzer") {
- sources = [ "hit_test/hit_test_query_fuzzer.cc" ]
- libfuzzer_options = [ "max_len=4096" ]
- deps = [
- ":host",
- "//base/test:test_support",
- "//components/viz/test:test_support",
- ]
- }
|