2021-09-21 13:57:43 +00:00
|
|
|
# Copyright 2021 Google LLC
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
# Things are easiest for everyone if these source paths are absolute.
|
2022-04-11 15:48:46 +00:00
|
|
|
_src = get_path_info("../src/gpu/graphite", "abspath")
|
|
|
|
_include = get_path_info("../include/gpu/graphite", "abspath")
|
|
|
|
_include_private = get_path_info("../include/private/gpu/graphite", "abspath")
|
2021-09-21 13:57:43 +00:00
|
|
|
|
2021-09-28 18:01:13 +00:00
|
|
|
skia_graphite_public = [
|
2021-12-02 15:39:33 +00:00
|
|
|
"$_include/BackendTexture.h",
|
2021-09-28 18:01:13 +00:00
|
|
|
"$_include/Context.h",
|
|
|
|
"$_include/GraphiteTypes.h",
|
2021-12-02 15:39:33 +00:00
|
|
|
"$_include/Recorder.h",
|
|
|
|
"$_include/Recording.h",
|
|
|
|
"$_include/SkStuff.h",
|
|
|
|
"$_include/TextureInfo.h",
|
2021-09-28 18:01:13 +00:00
|
|
|
]
|
2021-09-21 13:57:43 +00:00
|
|
|
|
2021-09-21 15:59:57 +00:00
|
|
|
skia_graphite_sources = [
|
2021-11-22 20:45:48 +00:00
|
|
|
"$_src/Attribute.h",
|
2021-11-10 19:37:14 +00:00
|
|
|
"$_src/BackendTexture.cpp",
|
2021-10-13 17:30:16 +00:00
|
|
|
"$_src/Buffer.cpp",
|
|
|
|
"$_src/Buffer.h",
|
2021-09-24 15:09:08 +00:00
|
|
|
"$_src/Caps.cpp",
|
|
|
|
"$_src/Caps.h",
|
2022-03-31 15:59:16 +00:00
|
|
|
"$_src/ClipStack.cpp",
|
|
|
|
"$_src/ClipStack_graphite.h",
|
2021-09-24 19:04:45 +00:00
|
|
|
"$_src/CommandBuffer.cpp",
|
|
|
|
"$_src/CommandBuffer.h",
|
2022-05-25 18:00:50 +00:00
|
|
|
"$_src/CommandTypes.h",
|
2021-09-21 13:57:43 +00:00
|
|
|
"$_src/Context.cpp",
|
2021-10-11 15:28:21 +00:00
|
|
|
"$_src/ContextPriv.cpp",
|
|
|
|
"$_src/ContextPriv.h",
|
2021-10-26 18:47:58 +00:00
|
|
|
"$_src/ContextUtils.cpp",
|
|
|
|
"$_src/ContextUtils.h",
|
2021-10-25 18:25:57 +00:00
|
|
|
"$_src/CopyTask.cpp",
|
|
|
|
"$_src/CopyTask.h",
|
2021-09-21 13:57:43 +00:00
|
|
|
"$_src/Device.cpp",
|
|
|
|
"$_src/Device.h",
|
2021-10-27 19:15:01 +00:00
|
|
|
"$_src/DrawBufferManager.cpp",
|
|
|
|
"$_src/DrawBufferManager.h",
|
2021-10-04 20:36:51 +00:00
|
|
|
"$_src/DrawContext.cpp",
|
|
|
|
"$_src/DrawContext.h",
|
2021-10-26 00:55:44 +00:00
|
|
|
"$_src/DrawList.cpp",
|
2021-09-25 17:06:50 +00:00
|
|
|
"$_src/DrawList.h",
|
2021-10-26 00:29:20 +00:00
|
|
|
"$_src/DrawOrder.h",
|
2021-09-28 19:19:34 +00:00
|
|
|
"$_src/DrawPass.cpp",
|
|
|
|
"$_src/DrawPass.h",
|
2021-11-15 19:11:48 +00:00
|
|
|
"$_src/DrawTypes.h",
|
2021-11-22 20:39:21 +00:00
|
|
|
"$_src/DrawWriter.cpp",
|
|
|
|
"$_src/DrawWriter.h",
|
2022-02-01 21:15:04 +00:00
|
|
|
"$_src/GlobalCache.cpp",
|
|
|
|
"$_src/GlobalCache.h",
|
2021-09-24 15:09:08 +00:00
|
|
|
"$_src/Gpu.cpp",
|
|
|
|
"$_src/Gpu.h",
|
2022-03-24 16:01:50 +00:00
|
|
|
"$_src/GpuWorkSubmission.cpp",
|
2021-10-12 19:22:34 +00:00
|
|
|
"$_src/GpuWorkSubmission.h",
|
2021-11-04 17:09:22 +00:00
|
|
|
"$_src/GraphicsPipeline.cpp",
|
|
|
|
"$_src/GraphicsPipeline.h",
|
|
|
|
"$_src/GraphicsPipelineDesc.cpp",
|
|
|
|
"$_src/GraphicsPipelineDesc.h",
|
2022-02-08 17:42:34 +00:00
|
|
|
"$_src/GraphiteResourceKey.cpp",
|
|
|
|
"$_src/GraphiteResourceKey.h",
|
2021-09-22 20:07:30 +00:00
|
|
|
"$_src/Image_Graphite.cpp",
|
|
|
|
"$_src/Image_Graphite.h",
|
2022-01-14 14:46:12 +00:00
|
|
|
"$_src/Log.h",
|
2022-01-07 17:19:40 +00:00
|
|
|
"$_src/PaintParams.cpp",
|
|
|
|
"$_src/PaintParams.h",
|
2022-03-01 21:44:48 +00:00
|
|
|
"$_src/PipelineDataCache.h",
|
2021-10-06 14:43:54 +00:00
|
|
|
"$_src/Recorder.cpp",
|
2022-02-04 20:47:51 +00:00
|
|
|
"$_src/RecorderPriv.cpp",
|
|
|
|
"$_src/RecorderPriv.h",
|
2021-10-06 14:43:54 +00:00
|
|
|
"$_src/Recording.cpp",
|
2021-09-25 17:06:50 +00:00
|
|
|
"$_src/RenderPassTask.cpp",
|
|
|
|
"$_src/RenderPassTask.h",
|
2021-10-25 20:41:51 +00:00
|
|
|
"$_src/Renderer.h",
|
2022-01-06 20:00:05 +00:00
|
|
|
"$_src/Resource.cpp",
|
|
|
|
"$_src/Resource.h",
|
2022-02-04 18:39:21 +00:00
|
|
|
"$_src/ResourceCache.cpp",
|
|
|
|
"$_src/ResourceCache.h",
|
2021-09-24 19:04:45 +00:00
|
|
|
"$_src/ResourceProvider.cpp",
|
|
|
|
"$_src/ResourceProvider.h",
|
2021-11-15 19:11:48 +00:00
|
|
|
"$_src/ResourceTypes.h",
|
2022-01-21 15:25:40 +00:00
|
|
|
"$_src/Sampler.cpp",
|
|
|
|
"$_src/Sampler.h",
|
2021-09-21 13:57:43 +00:00
|
|
|
"$_src/SkStuff.cpp",
|
2021-09-21 19:34:36 +00:00
|
|
|
"$_src/Surface_Graphite.cpp",
|
|
|
|
"$_src/Surface_Graphite.h",
|
2021-09-21 20:34:35 +00:00
|
|
|
"$_src/Task.cpp",
|
|
|
|
"$_src/Task.h",
|
2021-10-06 14:43:54 +00:00
|
|
|
"$_src/TaskGraph.cpp",
|
|
|
|
"$_src/TaskGraph.h",
|
2021-09-30 14:51:08 +00:00
|
|
|
"$_src/Texture.cpp",
|
|
|
|
"$_src/Texture.h",
|
2021-10-07 14:17:44 +00:00
|
|
|
"$_src/TextureInfo.cpp",
|
|
|
|
"$_src/TextureProxy.cpp",
|
|
|
|
"$_src/TextureProxy.h",
|
2022-02-16 21:26:00 +00:00
|
|
|
"$_src/TextureProxyView.h",
|
2022-03-21 17:18:02 +00:00
|
|
|
"$_src/TextureUtils.cpp",
|
|
|
|
"$_src/TextureUtils.h",
|
2021-10-26 15:39:20 +00:00
|
|
|
"$_src/UniformManager.cpp",
|
|
|
|
"$_src/UniformManager.h",
|
2022-04-28 19:40:44 +00:00
|
|
|
"$_src/UploadBufferManager.cpp",
|
|
|
|
"$_src/UploadBufferManager.h",
|
2022-02-08 17:39:29 +00:00
|
|
|
"$_src/UploadTask.cpp",
|
|
|
|
"$_src/UploadTask.h",
|
[graphite] Add Shape variant over path, rect, rrect, convex poly
This is basically GrShape except that I removed some of the API that
GrStyledShape used. I also changed the set of types that Shape can
represent to be better match what I imagine our final set will be in
graphite: {empty,point,line,rect,rrect,path,arc}
-> {empty,rect,rrect,path,convex-polygon}
The convex polygon is used to store points and lines as well. I also
imagine that it will subsume the need for migrating GrQuad over.
I'm doing this on its own in preparation for moving the ClipStack over
and consolidating the draw handling in Device/DrawList, all of which
get a lot easier if there is a single type that stores the geometry.
For the first milestone, actual rendering will still likely use
Shape::asPath() for the path renderer, but it's not a lot of extra work
to preserve the logical type at the high level, so may as well do that.
There are a few functions internal to Shape that still need to be
implemented (converting a path to a list of vertices, and doing point
containment), but those can come in a later CL.
Bug: skia:12466
Change-Id: I1040c54e3b8004f3bc1767d72ded60b572b39596
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/456257
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2021-10-06 19:30:13 +00:00
|
|
|
"$_src/geom/BoundsManager.h",
|
2021-10-19 19:04:41 +00:00
|
|
|
"$_src/geom/IntersectionTree.cpp",
|
|
|
|
"$_src/geom/IntersectionTree.h",
|
2021-10-18 18:25:20 +00:00
|
|
|
"$_src/geom/Rect.h",
|
[graphite] Add Shape variant over path, rect, rrect, convex poly
This is basically GrShape except that I removed some of the API that
GrStyledShape used. I also changed the set of types that Shape can
represent to be better match what I imagine our final set will be in
graphite: {empty,point,line,rect,rrect,path,arc}
-> {empty,rect,rrect,path,convex-polygon}
The convex polygon is used to store points and lines as well. I also
imagine that it will subsume the need for migrating GrQuad over.
I'm doing this on its own in preparation for moving the ClipStack over
and consolidating the draw handling in Device/DrawList, all of which
get a lot easier if there is a single type that stores the geometry.
For the first milestone, actual rendering will still likely use
Shape::asPath() for the path renderer, but it's not a lot of extra work
to preserve the logical type at the high level, so may as well do that.
There are a few functions internal to Shape that still need to be
implemented (converting a path to a list of vertices, and doing point
containment), but those can come in a later CL.
Bug: skia:12466
Change-Id: I1040c54e3b8004f3bc1767d72ded60b572b39596
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/456257
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2021-10-06 19:30:13 +00:00
|
|
|
"$_src/geom/Shape.cpp",
|
|
|
|
"$_src/geom/Shape.h",
|
2021-10-15 17:22:44 +00:00
|
|
|
"$_src/geom/Transform.cpp",
|
|
|
|
"$_src/geom/Transform_graphite.h",
|
[graphite] Move stencil-and-cover RenderSteps into separate headers
Progress on exposing the RenderSteps used in the one renderer for
re-use with new renderers.
Cq-Include-Trybots: luci.skia.skia.primary:Test-Mac12-Clang-MacBookPro16.2-GPU-IntelIrisPlus-x86_64-Debug-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Debug-All-ASAN_Graphite,Test-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Graphite,Perf-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Perf-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-Graphite,Build-Mac-Clang-x86_64-Release-Graphite,Build-Mac-Clang-x86_64-Debug-Graphite,Build-Mac-Clang-arm64-Release-iOS_Graphite,Build-Mac-Clang-arm64-Release-Graphite,Build-Mac-Clang-arm64-Debug-iOS_Graphite,Build-Mac-Clang-arm64-Debug-Graphite_NoGpu,Build-Mac-Clang-arm64-Debug-Graphite,Build-Mac-Clang-arm64-Debug-ASAN_Graphite
Bug: skia:12703
Change-Id: I134c79c37f2cdee40558161c9e73dc3221188e67
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/521959
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2022-03-18 18:16:54 +00:00
|
|
|
"$_src/render/CoverBoundsRenderStep.cpp",
|
|
|
|
"$_src/render/CoverBoundsRenderStep.h",
|
2022-05-18 17:40:54 +00:00
|
|
|
"$_src/render/DynamicInstancesPatchAllocator.h",
|
[graphite] Move stencil-and-cover RenderSteps into separate headers
Progress on exposing the RenderSteps used in the one renderer for
re-use with new renderers.
Cq-Include-Trybots: luci.skia.skia.primary:Test-Mac12-Clang-MacBookPro16.2-GPU-IntelIrisPlus-x86_64-Debug-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Debug-All-ASAN_Graphite,Test-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Graphite,Perf-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Perf-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-Graphite,Build-Mac-Clang-x86_64-Release-Graphite,Build-Mac-Clang-x86_64-Debug-Graphite,Build-Mac-Clang-arm64-Release-iOS_Graphite,Build-Mac-Clang-arm64-Release-Graphite,Build-Mac-Clang-arm64-Debug-iOS_Graphite,Build-Mac-Clang-arm64-Debug-Graphite_NoGpu,Build-Mac-Clang-arm64-Debug-Graphite,Build-Mac-Clang-arm64-Debug-ASAN_Graphite
Bug: skia:12703
Change-Id: I134c79c37f2cdee40558161c9e73dc3221188e67
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/521959
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2022-03-18 18:16:54 +00:00
|
|
|
"$_src/render/MiddleOutFanRenderStep.cpp",
|
|
|
|
"$_src/render/MiddleOutFanRenderStep.h",
|
[graphite] Make stencil-and-cover stencil settings accessible
This is in preparation for additional tessellation-based RenderSteps.
Cq-Include-Trybots: luci.skia.skia.primary:Test-Mac12-Clang-MacBookPro16.2-GPU-IntelIrisPlus-x86_64-Debug-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Debug-All-ASAN_Graphite,Test-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Graphite,Perf-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Perf-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-Graphite,Build-Mac-Clang-x86_64-Release-Graphite,Build-Mac-Clang-x86_64-Debug-Graphite,Build-Mac-Clang-arm64-Release-iOS_Graphite,Build-Mac-Clang-arm64-Release-Graphite,Build-Mac-Clang-arm64-Debug-iOS_Graphite,Build-Mac-Clang-arm64-Debug-Graphite_NoGpu,Build-Mac-Clang-arm64-Debug-Graphite,Build-Mac-Clang-arm64-Debug-ASAN_Graphite
Bug: skia:12703
Change-Id: I497ea14802201be10535ee26147838b28ab6b34d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/521957
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2022-03-17 17:05:06 +00:00
|
|
|
"$_src/render/StencilAndCoverDSS.h",
|
2021-10-25 20:41:51 +00:00
|
|
|
"$_src/render/StencilAndFillPathRenderer.cpp",
|
[graphite] Move stencil-and-cover RenderSteps into separate headers
Progress on exposing the RenderSteps used in the one renderer for
re-use with new renderers.
Cq-Include-Trybots: luci.skia.skia.primary:Test-Mac12-Clang-MacBookPro16.2-GPU-IntelIrisPlus-x86_64-Debug-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Debug-All-ASAN_Graphite,Test-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Graphite,Perf-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Perf-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-Graphite,Build-Mac-Clang-x86_64-Release-Graphite,Build-Mac-Clang-x86_64-Debug-Graphite,Build-Mac-Clang-arm64-Release-iOS_Graphite,Build-Mac-Clang-arm64-Release-Graphite,Build-Mac-Clang-arm64-Debug-iOS_Graphite,Build-Mac-Clang-arm64-Debug-Graphite_NoGpu,Build-Mac-Clang-arm64-Debug-Graphite,Build-Mac-Clang-arm64-Debug-ASAN_Graphite
Bug: skia:12703
Change-Id: I134c79c37f2cdee40558161c9e73dc3221188e67
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/521959
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2022-03-18 18:16:54 +00:00
|
|
|
"$_src/render/TessellateCurvesRenderStep.cpp",
|
|
|
|
"$_src/render/TessellateCurvesRenderStep.h",
|
2022-05-21 00:05:42 +00:00
|
|
|
"$_src/render/TessellateStrokesRenderStep.cpp",
|
|
|
|
"$_src/render/TessellateStrokesRenderStep.h",
|
[graphite] Implement stencil wedge tessellated path rendering
Cq-Include-Trybots: luci.skia.skia.primary:Test-Mac12-Clang-MacBookPro16.2-GPU-IntelIrisPlus-x86_64-Debug-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Test-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Debug-All-ASAN_Graphite,Test-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Debug-All-Graphite,Perf-Mac11-Clang-MacMini9.1-GPU-AppleM1-arm64-Release-All-Graphite,Perf-Mac10.15.7-Clang-MacBookPro11.5-GPU-RadeonHD8870M-x86_64-Release-All-Graphite,Build-Mac-Clang-x86_64-Release-Graphite,Build-Mac-Clang-x86_64-Debug-Graphite,Build-Mac-Clang-arm64-Release-iOS_Graphite,Build-Mac-Clang-arm64-Release-Graphite,Build-Mac-Clang-arm64-Debug-iOS_Graphite,Build-Mac-Clang-arm64-Debug-Graphite_NoGpu,Build-Mac-Clang-arm64-Debug-Graphite,Build-Mac-Clang-arm64-Debug-ASAN_Graphite
Bug: skia:12703
Change-Id: Iccdbc4f95c6d714d58f21fa5d23bdd14eb1f88ac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/522096
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
2022-03-19 18:30:53 +00:00
|
|
|
"$_src/render/TessellateWedgesRenderStep.cpp",
|
|
|
|
"$_src/render/TessellateWedgesRenderStep.h",
|
2021-09-21 13:57:43 +00:00
|
|
|
]
|
2021-09-24 20:46:36 +00:00
|
|
|
|
|
|
|
skia_graphite_mtl_sources = [
|
2021-09-28 18:01:13 +00:00
|
|
|
"$_include/mtl/MtlBackendContext.h",
|
|
|
|
"$_include/mtl/MtlTypes.h",
|
2022-04-11 15:48:46 +00:00
|
|
|
"$_include_private/MtlTypesPriv.h",
|
2021-10-20 13:24:34 +00:00
|
|
|
"$_src/mtl/MtlBlitCommandEncoder.h",
|
2021-10-13 17:30:16 +00:00
|
|
|
"$_src/mtl/MtlBuffer.h",
|
|
|
|
"$_src/mtl/MtlBuffer.mm",
|
2021-09-28 15:55:21 +00:00
|
|
|
"$_src/mtl/MtlCaps.h",
|
|
|
|
"$_src/mtl/MtlCaps.mm",
|
|
|
|
"$_src/mtl/MtlCommandBuffer.h",
|
|
|
|
"$_src/mtl/MtlCommandBuffer.mm",
|
2021-09-24 20:46:36 +00:00
|
|
|
"$_src/mtl/MtlGpu.h",
|
|
|
|
"$_src/mtl/MtlGpu.mm",
|
2021-11-04 17:09:22 +00:00
|
|
|
"$_src/mtl/MtlGraphicsPipeline.h",
|
|
|
|
"$_src/mtl/MtlGraphicsPipeline.mm",
|
2021-10-19 16:54:50 +00:00
|
|
|
"$_src/mtl/MtlRenderCommandEncoder.h",
|
2021-09-28 15:55:21 +00:00
|
|
|
"$_src/mtl/MtlResourceProvider.h",
|
|
|
|
"$_src/mtl/MtlResourceProvider.mm",
|
2022-01-21 15:25:40 +00:00
|
|
|
"$_src/mtl/MtlSampler.h",
|
|
|
|
"$_src/mtl/MtlSampler.mm",
|
2021-09-30 15:56:44 +00:00
|
|
|
"$_src/mtl/MtlTexture.h",
|
|
|
|
"$_src/mtl/MtlTexture.mm",
|
2021-09-29 20:48:25 +00:00
|
|
|
"$_src/mtl/MtlTrampoline.h",
|
|
|
|
"$_src/mtl/MtlTrampoline.mm",
|
2021-09-29 15:42:09 +00:00
|
|
|
"$_src/mtl/MtlTypesPriv.mm",
|
2021-10-05 20:34:37 +00:00
|
|
|
"$_src/mtl/MtlUtils.h",
|
|
|
|
"$_src/mtl/MtlUtils.mm",
|
2021-09-24 20:46:36 +00:00
|
|
|
]
|