| # Copyright 2019 The Fuchsia 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("//garnet/lib/magma/gnbuild/magma.gni") |
| |
| executable("vklatency_on_scenic") { |
| sources = [ |
| "image_pipe_view.cc", |
| "image_pipe_view.h", |
| "main_scenic.cc", |
| "skia_gpu_painter.cc", |
| "skia_gpu_painter.h", |
| "swapchain.cc", |
| "swapchain.h", |
| ] |
| deps = [ |
| ":vklatency", |
| "$zircon_build_root/public/lib/hid", |
| "//garnet/public/lib/ui/base_view/cpp", |
| "//garnet/public/lib/ui/scenic/cpp", |
| ] |
| } |
| |
| executable("vklatency_on_fb") { |
| sources = [ |
| "fb_view.cc", |
| "fb_view.h", |
| "main_fb.cc", |
| "skia_gpu_painter.cc", |
| "skia_gpu_painter.h", |
| "swapchain.cc", |
| "swapchain.h", |
| ] |
| defines = [ "VKLATENCY_USE_FB" ] |
| deps = [ |
| ":vklatency", |
| "//garnet/bin/ui/input_reader", |
| ] |
| } |
| |
| source_set("vklatency") { |
| defines = [ "VK_USE_PLATFORM_FUCHSIA" ] |
| public_deps = [ |
| "$magma_build_root/src/magma_util", |
| "$magma_build_root/src/magma_util/platform:trace", |
| "$zircon_build_root/public/lib/async-loop-cpp", |
| "$zircon_build_root/public/lib/trace-provider", |
| "//garnet/public/lib/fxl", |
| "//garnet/public/lib/ui/input", |
| "//garnet/public/lib/vulkan", |
| "//third_party/skia", |
| ] |
| } |