summaryrefslogtreecommitdiff
path: root/chromium/components/viz/common/DEPS
blob: d1f52eb3b25a4e476fd5704dbdf2dc3663d55c6a (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
# Please consult components/viz/README.md about allowable dependencies.

include_rules = [
  # Do not use mojo bindings in viz/client/. This library should be agnostic
  # about how to communicate with viz.
  "-mojo/public/cpp/bindings",
  # Exception is struct_traits.h which is used for defining friends only.
  "+mojo/public/cpp/bindings/struct_traits.h",
]

specific_include_rules = {
  "skia_helper.(cc|h)": [
    "+cc/base",
    "+third_party/skia",
  ],
  # DEPS for GLHelper and friends which are in the root common/ directory.
  "(yuv_readback|gl_helper|gl_scaler).*\.(cc|h)": [
    "+gpu/GLES2",
    "+gpu/command_buffer/client",
    "+gpu/command_buffer/common",
    "+gpu/command_buffer/service",
    "+gpu/ipc/common",
    "+third_party/skia",
  ],
  ".*(_unittest|_pixeltest|test_util)\.cc": [
    "+cc/test",
    "+components/viz/test",
    "+gpu/ipc/gl_in_process_context.h",
    "+gpu/ipc/test_gpu_thread_holder.h",
    "+media/base",
    "+third_party/skia/include/core",
    "+ui/gl",
  ],
  ".*_benchmark\.cc": [
    "+gpu/ipc/gl_in_process_context.h",
    "+gpu/ipc/test_gpu_thread_holder.h",
  ],
}