summaryrefslogtreecommitdiff
path: root/chromium/components/viz/common/DEPS
blob: 71bb14cbcb15d11094eee244705855ae2abadf1c (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
# 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",
  "+third_party/perfetto/protos/perfetto/trace/track_event",
]

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": [
    "+components/viz/test/test_gpu_service_holder.h",
    "+gpu/ipc/gl_in_process_context.h",
  ],
  "features.cc" : [
    "+gpu/config/gpu_finch_features.h",
  ],
  "bitmap_allocation.cc" : [
    # Only used to pass Mojo handles, not to communicate with the viz service.
    "+mojo/public/cpp/base/shared_memory_utils.h",
  ],
}