summaryrefslogtreecommitdiffstats
path: root/components/mus/gles2/BUILD.gn
blob: 60bde747f7d7267ffb68206e54a923102542286b (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright 2014 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.

source_set("gles2") {
  visibility = [
    "//components/mus:*",
    "//components/mus/ws:*",
    "//components/mus/surfaces:*",
    "//mojo/runner:lib",  # For android
  ]

  sources = [
    "command_buffer_driver.cc",
    "command_buffer_driver.h",
    "command_buffer_impl.cc",
    "command_buffer_impl.h",
    "command_buffer_impl_observer.h",
    "command_buffer_local.cc",
    "command_buffer_local.h",
    "command_buffer_local_client.h",
    "command_buffer_task_runner.cc",
    "command_buffer_task_runner.h",
    "gpu_impl.cc",
    "gpu_impl.h",
    "gpu_memory_tracker.cc",
    "gpu_memory_tracker.h",
    "gpu_state.cc",
    "gpu_state.h",
  ]

  public_deps = [
    ":lib",
  ]
  deps = [
    "//base",
    "//components/mus/public/interfaces",
    "//gpu/command_buffer/client",
    "//gpu/command_buffer/common:gles2_utils",
    "//gpu/command_buffer/service",
    "//gpu/config:config",
    "//mojo/converters/geometry",
    "//mojo/public/cpp/bindings",
    "//ui/gfx",
    "//ui/gfx/geometry",
    "//ui/gl",
    "//ui/mojo/geometry:interfaces",
  ]

  if (is_android) {
    deps += [ "//mojo/platform_handle:platform_handle_impl" ]
  } else {
    deps += [ "//mojo/platform_handle:for_shared_library" ]
  }

  include_dirs = [ "../.." ]
}

source_set("lib") {
  sources = [
    "command_buffer_type_conversions.cc",
    "command_buffer_type_conversions.h",
    "mojo_buffer_backing.cc",
    "mojo_buffer_backing.h",
    "mojo_gpu_memory_buffer.cc",
    "mojo_gpu_memory_buffer.h",
    "mojo_gpu_memory_buffer_manager.cc",
    "mojo_gpu_memory_buffer_manager.h",
    "raster_thread_helper.cc",
    "raster_thread_helper.h",
  ]

  deps = [
    "//base",
    "//cc",
    "//components/mus/public/interfaces",
    "//gpu/command_buffer/client",
    "//gpu/command_buffer/common",
    "//gpu/config:config",
    "//mojo/public/cpp/bindings",
    "//mojo/public/cpp/system",
    "//ui/gfx",
    "//ui/gfx/geometry",
  ]

  include_dirs = [ "../.." ]
}