summaryrefslogtreecommitdiff
path: root/chromium/gpu/ipc/BUILD.gn
blob: 0aace2a26da2bfd1af471d9094abad2de1b22a55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright 2016 The Chromium Authors
# 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")

component("gl_in_process_context") {
  testonly = !is_qtwebengine

  sources = [
    "gl_in_process_context.cc",
    "gl_in_process_context.h",
    "gl_in_process_context_export.h",
    "gpu_in_process_thread_service.cc",
    "gpu_in_process_thread_service.h",
    "in_process_command_buffer.cc",
    "in_process_command_buffer.h",
  ]

  defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ]

  deps = [
    "//base",
    "//base/third_party/dynamic_annotations",
    "//gpu/command_buffer/client",
    "//gpu/command_buffer/client:gles2_cmd_helper",
    "//gpu/command_buffer/client:gles2_implementation",
    "//gpu/command_buffer/client:raster",
    "//gpu/command_buffer/common",
    "//gpu/command_buffer/service",
    "//gpu/command_buffer/service:gles2",
    "//gpu/config",
    "//gpu/ipc/client",
    "//gpu/ipc/common",
    "//gpu/ipc/common:surface_handle_type",
    "//gpu/ipc/host",
    "//gpu/ipc/service",
    "//gpu/skia_bindings:skia_bindings",
    "//ui/gfx",
    "//ui/gfx/geometry",
    "//ui/gl",
    "//ui/gl/init",
  ]

  if (use_ozone) {
    deps += [ "//ui/ozone" ]
  }
}

component("gpu_thread_holder") {
  testonly = true

  sources = [
    "in_process_gpu_thread_holder.cc",
    "in_process_gpu_thread_holder.h",
    "test_gpu_thread_holder.cc",
    "test_gpu_thread_holder.h",
  ]

  defines = [ "IS_GPU_THREAD_HOLDER_IMPL" ]

  public_deps = [ "//gpu/config" ]

  deps = [
    ":gl_in_process_context",
    "//base",
    "//gpu/command_buffer/service",
    "//gpu/command_buffer/service:gles2",
    "//gpu/ipc/service",
  ]
}