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 = [
|
|
|
|
"$_include/Context.h",
|
|
|
|
"$_include/GraphiteTypes.h",
|
|
|
|
]
|
2021-09-21 13:57:43 +00:00
|
|
|
|
2021-09-21 15:59:57 +00:00
|
|
|
skia_graphite_sources = [
|
2021-09-21 13:57:43 +00:00
|
|
|
"$_include/Context.h",
|
2021-09-21 15:59:57 +00:00
|
|
|
"$_include/SkStuff.h",
|
2021-09-29 15:42:09 +00:00
|
|
|
"$_include/TextureInfo.h",
|
2021-10-06 14:30:33 +00:00
|
|
|
"$_include/private/GraphiteTypesPriv.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-09-21 13:57:43 +00:00
|
|
|
"$_src/Device.cpp",
|
|
|
|
"$_src/Device.h",
|
2021-10-04 20:36:51 +00:00
|
|
|
"$_src/DrawContext.cpp",
|
|
|
|
"$_src/DrawContext.h",
|
2021-09-25 17:06:50 +00:00
|
|
|
"$_src/DrawList.h",
|
2021-09-28 19:19:34 +00:00
|
|
|
"$_src/DrawPass.cpp",
|
|
|
|
"$_src/DrawPass.h",
|
2021-09-24 15:09:08 +00:00
|
|
|
"$_src/Gpu.cpp",
|
|
|
|
"$_src/Gpu.h",
|
2021-09-22 20:07:30 +00:00
|
|
|
"$_src/Image_Graphite.cpp",
|
|
|
|
"$_src/Image_Graphite.h",
|
2021-10-06 14:43:54 +00:00
|
|
|
"$_src/Recorder.cpp",
|
|
|
|
"$_src/Recorder.h",
|
|
|
|
"$_src/Recording.cpp",
|
|
|
|
"$_src/Recording.h",
|
2021-09-25 17:06:50 +00:00
|
|
|
"$_src/RenderPassTask.cpp",
|
|
|
|
"$_src/RenderPassTask.h",
|
2021-10-04 20:16:57 +00:00
|
|
|
"$_src/RenderPipeline.cpp",
|
|
|
|
"$_src/RenderPipeline.h",
|
|
|
|
"$_src/RenderPipelineDesc.cpp",
|
|
|
|
"$_src/RenderPipelineDesc.h",
|
2021-09-24 19:04:45 +00:00
|
|
|
"$_src/ResourceProvider.cpp",
|
|
|
|
"$_src/ResourceProvider.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",
|
[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",
|
|
|
|
"$_src/geom/Shape.cpp",
|
|
|
|
"$_src/geom/Shape.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",
|
2021-09-29 15:42:09 +00:00
|
|
|
"$_include/private/MtlTypesPriv.h",
|
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-10-04 20:16:57 +00:00
|
|
|
"$_src/mtl/MtlRenderPipeline.h",
|
|
|
|
"$_src/mtl/MtlRenderPipeline.mm",
|
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
|
|
|
]
|