skia2/tests/graphite/BUILD.bazel
Robert Phillips 87a50d3fcf [graphite] Break ground on local coords support
This just plumbs through a flag that allows snippets to request a
dev2Local matrix uniform and uses it for gradients and the image shader.

Bug: skia:12701
Change-Id: If1eadff8d5e40d81d9e3794db4b7f816127c4b75
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/529810
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2022-04-27 15:25:09 +00:00

171 lines
5.0 KiB
Python

load("//bazel:macros.bzl", "generated_cc_atom")
licenses(["notice"])
generated_cc_atom(
name = "BackendTextureTest_src",
srcs = ["BackendTextureTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkColorSpace_hdr",
"//include/core:SkSurface_hdr",
"//include/gpu/graphite:BackendTexture_hdr",
"//include/gpu/graphite:Context_hdr",
"//include/gpu/graphite:Recorder_hdr",
"//include/gpu/graphite:SkStuff_hdr",
"//src/gpu/graphite:Caps_hdr",
"//src/gpu/graphite:ContextPriv_hdr",
"//src/gpu/graphite:Gpu_hdr",
"//src/gpu/graphite:ResourceTypes_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "CommandBufferTest_src",
srcs = ["CommandBufferTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//include/gpu/graphite:Context_hdr",
"//include/gpu/graphite:Recorder_hdr",
"//include/gpu/graphite/mtl:MtlTypes_hdr",
"//src/core:SkKeyContext_hdr",
"//src/core:SkKeyHelpers_hdr",
"//src/core:SkShaderCodeDictionary_hdr",
"//src/gpu/graphite:Buffer_hdr",
"//src/gpu/graphite:Caps_hdr",
"//src/gpu/graphite:CommandBuffer_hdr",
"//src/gpu/graphite:ContextPriv_hdr",
"//src/gpu/graphite:DrawBufferManager_hdr",
"//src/gpu/graphite:DrawGeometry_hdr",
"//src/gpu/graphite:DrawWriter_hdr",
"//src/gpu/graphite:GlobalCache_hdr",
"//src/gpu/graphite:Gpu_hdr",
"//src/gpu/graphite:GraphicsPipeline_hdr",
"//src/gpu/graphite:RecorderPriv_hdr",
"//src/gpu/graphite:Renderer_hdr",
"//src/gpu/graphite:ResourceProvider_hdr",
"//src/gpu/graphite:Sampler_hdr",
"//src/gpu/graphite:TextureProxy_hdr",
"//src/gpu/graphite:Texture_hdr",
"//src/gpu/graphite:UniformManager_hdr",
"//src/gpu/graphite/geom:Shape_hdr",
"//src/gpu/graphite/geom:Transform_graphite_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "IntersectionTreeTest_src",
srcs = ["IntersectionTreeTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//include/utils:SkRandom_hdr",
"//src/gpu/graphite/geom:IntersectionTree_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "MaskTest_src",
srcs = ["MaskTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//src/gpu/graphite:EnumBitMask_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "RecorderTest_src",
srcs = ["RecorderTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//include/gpu/graphite:Context_hdr",
"//include/gpu/graphite:Recorder_hdr",
"//src/gpu/graphite:Device_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "RectTest_src",
srcs = ["RectTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//src/gpu/graphite/geom:Rect_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "ShapeTest_src",
srcs = ["ShapeTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//src/gpu/graphite/geom:Shape_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "TransformTest_src",
srcs = ["TransformTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//src/gpu/graphite/geom:Transform_graphite_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "UniformTest_src",
srcs = ["UniformTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//include/core:SkM44_hdr",
"//include/core:SkPaint_hdr",
"//include/effects:SkGradientShader_hdr",
"//include/gpu/graphite:Recorder_hdr",
"//include/private:SkUniquePaintParamsID_hdr",
"//src/core:SkKeyContext_hdr",
"//src/core:SkKeyHelpers_hdr",
"//src/core:SkPipelineData_hdr",
"//src/core:SkShaderCodeDictionary_hdr",
"//src/gpu/graphite:ContextPriv_hdr",
"//src/gpu/graphite:ContextUtils_hdr",
"//src/gpu/graphite:GlobalCache_hdr",
"//src/gpu/graphite:PaintParams_hdr",
"//src/gpu/graphite:RecorderPriv_hdr",
"//src/gpu/graphite:ResourceProvider_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "KeyTest_src",
srcs = ["KeyTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//src/core:SkPaintParamsKey_hdr",
"//src/core:SkShaderCodeDictionary_hdr",
"//src/gpu/graphite:ContextPriv_hdr",
"//tests:Test_hdr",
],
)
generated_cc_atom(
name = "PipelineDataCacheTest_src",
srcs = ["PipelineDataCacheTest.cpp"],
visibility = ["//:__subpackages__"],
deps = [
"//include/gpu/graphite:Context_hdr",
"//include/gpu/graphite:Recorder_hdr",
"//src/core:SkPipelineData_hdr",
"//src/core:SkUniform_hdr",
"//src/gpu/graphite:PipelineDataCache_hdr",
"//src/gpu/graphite:RecorderPriv_hdr",
"//tests:Test_hdr",
],
)