BUILD.gn 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Copyright 2016 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("//build/config/ui.gni")
  5. component("gl_in_process_context") {
  6. testonly = true
  7. sources = [
  8. "gl_in_process_context.cc",
  9. "gl_in_process_context.h",
  10. "gl_in_process_context_export.h",
  11. "gpu_in_process_thread_service.cc",
  12. "gpu_in_process_thread_service.h",
  13. "in_process_command_buffer.cc",
  14. "in_process_command_buffer.h",
  15. ]
  16. defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ]
  17. deps = [
  18. "//base",
  19. "//base/third_party/dynamic_annotations",
  20. "//gpu/command_buffer/client",
  21. "//gpu/command_buffer/client:gles2_cmd_helper",
  22. "//gpu/command_buffer/client:gles2_implementation",
  23. "//gpu/command_buffer/client:raster",
  24. "//gpu/command_buffer/common",
  25. "//gpu/command_buffer/service",
  26. "//gpu/command_buffer/service:gles2",
  27. "//gpu/config",
  28. "//gpu/ipc/client",
  29. "//gpu/ipc/common",
  30. "//gpu/ipc/common:surface_handle_type",
  31. "//gpu/ipc/host",
  32. "//gpu/ipc/service",
  33. "//gpu/skia_bindings:skia_bindings",
  34. "//ui/gfx",
  35. "//ui/gfx/geometry",
  36. "//ui/gl",
  37. "//ui/gl/init",
  38. ]
  39. if (use_ozone) {
  40. deps += [ "//ui/ozone" ]
  41. }
  42. }
  43. component("gpu_thread_holder") {
  44. testonly = true
  45. sources = [
  46. "in_process_gpu_thread_holder.cc",
  47. "in_process_gpu_thread_holder.h",
  48. "test_gpu_thread_holder.cc",
  49. "test_gpu_thread_holder.h",
  50. ]
  51. defines = [ "IS_GPU_THREAD_HOLDER_IMPL" ]
  52. public_deps = [ "//gpu/config" ]
  53. deps = [
  54. ":gl_in_process_context",
  55. "//base",
  56. "//gpu/command_buffer/service",
  57. "//gpu/command_buffer/service:gles2",
  58. "//gpu/ipc/service",
  59. ]
  60. }