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.
|
2021-09-21 15:59:57 +00:00
|
|
|
_src = get_path_info("../experimental/graphite/src", "abspath")
|
|
|
|
_include = get_path_info("../experimental/graphite/include", "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",
|
2021-09-24 19:04:45 +00:00
|
|
|
"$_src/CommandBuffer.cpp",
|
|
|
|
"$_src/CommandBuffer.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",
|
2021-11-15 19:11:48 +00:00
|
|
|
"$_src/EnumBitMask.h",
|
2021-09-24 15:09:08 +00:00
|
|
|
"$_src/Gpu.cpp",
|
|
|
|
"$_src/Gpu.h",
|
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",
|
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",
|
2021-10-06 14:43:54 +00:00
|
|
|
"$_src/Recorder.cpp",
|
|
|
|
"$_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",
|
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",
|
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",
|
2021-10-28 13:58:10 +00:00
|
|
|
"$_src/UniformCache.cpp",
|
|
|
|
"$_src/UniformCache.h",
|
2021-10-26 15:39:20 +00:00
|
|
|
"$_src/UniformManager.cpp",
|
|
|
|
"$_src/UniformManager.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",
|
2021-11-15 19:11:48 +00:00
|
|
|
"$_src/geom/VectorTypes.h",
|
2021-10-25 20:41:51 +00:00
|
|
|
"$_src/render/StencilAndFillPathRenderer.cpp",
|
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",
|
2021-09-29 15:42:09 +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",
|
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
|
|
|
]
|