skia2/modules/svg/svg.gni

103 lines
2.9 KiB
Plaintext
Raw Normal View History

# Copyright 2020 Google Inc.
#
# 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.
_src = get_path_info("src", "abspath")
_include = get_path_info("include", "abspath")
skia_svg_public = [
"$_include/SkSVGAttribute.h",
"$_include/SkSVGAttributeParser.h",
"$_include/SkSVGCircle.h",
"$_include/SkSVGClipPath.h",
"$_include/SkSVGContainer.h",
"$_include/SkSVGDefs.h",
"$_include/SkSVGDOM.h",
"$_include/SkSVGEllipse.h",
"$_include/SkSVGFe.h",
"$_include/SkSVGFeBlend.h",
"$_include/SkSVGFeColorMatrix.h",
"$_include/SkSVGFeComposite.h",
"$_include/SkSVGFeDisplacementMap.h",
"$_include/SkSVGFeFlood.h",
"$_include/SkSVGFeGaussianBlur.h",
"$_include/SkSVGFeImage.h",
"$_include/SkSVGFeLightSource.h",
"$_include/SkSVGFeLighting.h",
"$_include/SkSVGFeMorphology.h",
"$_include/SkSVGFeOffset.h",
"$_include/SkSVGFeTurbulence.h",
"$_include/SkSVGFilter.h",
"$_include/SkSVGFilterContext.h",
"$_include/SkSVGG.h",
"$_include/SkSVGGradient.h",
"$_include/SkSVGHiddenContainer.h",
"$_include/SkSVGIDMapper.h",
"$_include/SkSVGImage.h",
"$_include/SkSVGLinearGradient.h",
"$_include/SkSVGLine.h",
"$_include/SkSVGMask.h",
"$_include/SkSVGNode.h",
"$_include/SkSVGPath.h",
"$_include/SkSVGPattern.h",
"$_include/SkSVGPoly.h",
"$_include/SkSVGRadialGradient.h",
"$_include/SkSVGRect.h",
"$_include/SkSVGRenderContext.h",
"$_include/SkSVGShape.h",
"$_include/SkSVGStop.h",
"$_include/SkSVGSVG.h",
"$_include/SkSVGText.h",
"$_include/SkSVGTransformableNode.h",
"$_include/SkSVGTypes.h",
"$_include/SkSVGUse.h",
"$_include/SkSVGValue.h",
]
skia_svg_sources = [
"$_src/SkSVGAttribute.cpp",
"$_src/SkSVGAttributeParser.cpp",
"$_src/SkSVGCircle.cpp",
"$_src/SkSVGClipPath.cpp",
"$_src/SkSVGContainer.cpp",
"$_src/SkSVGDOM.cpp",
"$_src/SkSVGEllipse.cpp",
"$_src/SkSVGFe.cpp",
"$_src/SkSVGFeBlend.cpp",
"$_src/SkSVGFeColorMatrix.cpp",
"$_src/SkSVGFeComposite.cpp",
"$_src/SkSVGFeDisplacementMap.cpp",
"$_src/SkSVGFeFlood.cpp",
"$_src/SkSVGFeGaussianBlur.cpp",
"$_src/SkSVGFeImage.cpp",
"$_src/SkSVGFeLightSource.cpp",
"$_src/SkSVGFeLighting.cpp",
"$_src/SkSVGFeMorphology.cpp",
"$_src/SkSVGFeOffset.cpp",
"$_src/SkSVGFeTurbulence.cpp",
"$_src/SkSVGFilter.cpp",
"$_src/SkSVGFilterContext.cpp",
"$_src/SkSVGGradient.cpp",
"$_src/SkSVGImage.cpp",
"$_src/SkSVGLine.cpp",
"$_src/SkSVGLinearGradient.cpp",
"$_src/SkSVGMask.cpp",
"$_src/SkSVGNode.cpp",
"$_src/SkSVGPath.cpp",
"$_src/SkSVGPattern.cpp",
"$_src/SkSVGPoly.cpp",
"$_src/SkSVGRadialGradient.cpp",
"$_src/SkSVGRect.cpp",
"$_src/SkSVGRenderContext.cpp",
"$_src/SkSVGSVG.cpp",
"$_src/SkSVGShape.cpp",
"$_src/SkSVGStop.cpp",
"$_src/SkSVGText.cpp",
Reland "[svg] Absolute positioning support for text" This reverts commit e2f62453523e8eeb98968570b48b229f1cc1e712. Reason for revert: relanding with fixes Original change's description: > Revert "[svg] Absolute positioning support for text" > > This reverts commit febb1b87a5e73bdbe2cb598783082d3644d0e969. > > Reason for revert: breaking the android roll > > Original change's description: > > [svg] Absolute positioning support for text > > > > Implement per-character position attribute lookup based on [1]: > > > > - convert "x" and "y" attributes to arrays > > - introduce ScopedPosResolver to handle positioning attribute lookup > > and fallback > > - push a new resolver every time we enter a text positioning element > > scope (<text>, <tspan>, etc). > > - flush/reposition a new text chunk every time we encounter explicit > > absolute positions > > > > The position attribute fallback logic is complex enough to warrant a > > unit test. > > > > [1] https://www.w3.org/TR/SVG11/text.html#TSpanElementXAttribute > > > > Bug: skia:10840 > > Change-Id: I66c478fea4a179fdb8b1a6a9ff00c4dd9509f8d2 > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/345161 > > Commit-Queue: Florin Malita <fmalita@chromium.org> > > Commit-Queue: Florin Malita <fmalita@google.com> > > Reviewed-by: Tyler Denniston <tdenniston@google.com> > > TBR=fmalita@chromium.org,fmalita@google.com,tdenniston@google.com > > Change-Id: I80e3396d555369fe835ee73102135061f63e8bf0 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: skia:10840 > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/345417 > Reviewed-by: Derek Sollenberger <djsollen@google.com> > Commit-Queue: Derek Sollenberger <djsollen@google.com> TBR=djsollen@google.com,fmalita@chromium.org,fmalita@google.com,tdenniston@google.com # Not skipping CQ checks because this is a reland. Bug: skia:10840 Change-Id: I4c6f6a9f19c0f7598bdcf34e915f43c139b995a9 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/345420 Reviewed-by: Florin Malita <fmalita@google.com> Commit-Queue: Florin Malita <fmalita@google.com>
2020-12-17 21:36:54 +00:00
"$_src/SkSVGTextPriv.h",
"$_src/SkSVGTransformableNode.cpp",
"$_src/SkSVGUse.cpp",
"$_src/SkSVGValue.cpp",
]