• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("//bazel:skia_rules.bzl", "exports_files_legacy", "select_multi", "skia_filegroup")
2
3licenses(["notice"])
4
5exports_files_legacy()
6
7# In separate group for mapping to //gn/gpu.gni:skia_shared_gpu_sources.
8skia_filegroup(
9    name = "shared_public_hdrs",
10    srcs = [
11        "GpuTypes.h",
12        "MutableTextureState.h",
13        "ShaderErrorHandler.h",
14    ],
15)
16
17skia_filegroup(
18    name = "public_hdrs",
19    srcs = [
20        "GrBackendDrawableInfo.h",
21        "GrBackendSemaphore.h",
22        "GrBackendSurface.h",
23        "GrBackendSurfaceMutableState.h",
24        "GrContextOptions.h",
25        "GrContextThreadSafeProxy.h",
26        "GrDirectContext.h",
27        "GrDriverBugWorkarounds.h",
28        "GrDriverBugWorkaroundsAutogen.h",
29        "GrRecordingContext.h",
30        "GrSurfaceInfo.h",
31        "GrTypes.h",
32        "GrYUVABackendTextures.h",
33        "//include/gpu/mock:public_hdrs",
34        # TODO(egdaniel, kjlubick) GrGLTypes.h is used unconditionally by GrBackendSemaphore.h
35        "//include/gpu/gl:public_hdrs",
36        ":shared_public_hdrs",
37    ] + select_multi(
38        {
39            "//src/gpu:dawn_backend": ["//include/gpu/dawn:public_hdrs"],
40            "//src/gpu:vulkan_backend": ["//include/gpu/vk:public_hdrs"],
41            # TODO(kjlubick) mtl and d3d backend
42        },
43    ),
44    visibility = ["//include:__pkg__"],
45)
46