2016-10-26 18:17:04 +00:00
|
|
|
# Copyright 2016 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")
|
2020-06-24 18:50:25 +00:00
|
|
|
_include = get_path_info("../include", "abspath")
|
2016-10-26 18:17:04 +00:00
|
|
|
|
|
|
|
skia_sksl_sources = [
|
2020-06-30 17:39:35 +00:00
|
|
|
"$_include/private/SkSLSampleUsage.h",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLASTFile.h",
|
2019-06-06 14:04:27 +00:00
|
|
|
"$_src/sksl/SkSLASTNode.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLASTNode.h",
|
2020-06-29 21:27:00 +00:00
|
|
|
"$_src/sksl/SkSLAnalysis.cpp",
|
|
|
|
"$_src/sksl/SkSLAnalysis.h",
|
2020-04-02 15:38:40 +00:00
|
|
|
"$_src/sksl/SkSLByteCode.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLByteCode.h",
|
2019-03-21 15:05:37 +00:00
|
|
|
"$_src/sksl/SkSLByteCodeGenerator.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLByteCodeGenerator.h",
|
2016-10-26 18:17:04 +00:00
|
|
|
"$_src/sksl/SkSLCFGGenerator.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLCFGGenerator.h",
|
2016-10-26 18:17:04 +00:00
|
|
|
"$_src/sksl/SkSLCompiler.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLCompiler.h",
|
|
|
|
"$_src/sksl/SkSLContext.h",
|
|
|
|
"$_src/sksl/SkSLDefines.h",
|
|
|
|
"$_src/sksl/SkSLErrorReporter.h",
|
|
|
|
"$_src/sksl/SkSLExternalValue.h",
|
|
|
|
"$_src/sksl/SkSLFileOutputStream.h",
|
2017-09-11 20:50:14 +00:00
|
|
|
"$_src/sksl/SkSLIRGenerator.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLIRGenerator.h",
|
2017-09-11 20:50:14 +00:00
|
|
|
"$_src/sksl/SkSLLexer.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLLexer.h",
|
|
|
|
"$_src/sksl/SkSLMemoryLayout.h",
|
|
|
|
"$_src/sksl/SkSLOutputStream.h",
|
2017-09-11 20:50:14 +00:00
|
|
|
"$_src/sksl/SkSLParser.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLParser.h",
|
|
|
|
"$_src/sksl/SkSLPosition.h",
|
2020-06-30 17:39:35 +00:00
|
|
|
"$_src/sksl/SkSLSampleUsage.cpp",
|
2019-08-29 20:10:13 +00:00
|
|
|
"$_src/sksl/SkSLSectionAndParameterHelper.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLSectionAndParameterHelper.h",
|
2017-03-31 17:56:23 +00:00
|
|
|
"$_src/sksl/SkSLString.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLString.h",
|
|
|
|
"$_src/sksl/SkSLStringStream.h",
|
2016-10-26 18:17:04 +00:00
|
|
|
"$_src/sksl/SkSLUtil.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLUtil.h",
|
2017-06-29 14:03:38 +00:00
|
|
|
"$_src/sksl/ir/SkSLSetting.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/ir/SkSLSetting.h",
|
2019-08-29 20:10:13 +00:00
|
|
|
"$_src/sksl/ir/SkSLSymbolTable.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/ir/SkSLSymbolTable.h",
|
2016-10-26 18:17:04 +00:00
|
|
|
"$_src/sksl/ir/SkSLType.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/ir/SkSLType.h",
|
2018-03-26 18:24:27 +00:00
|
|
|
"$_src/sksl/ir/SkSLVariableReference.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/ir/SkSLVariableReference.h",
|
2016-10-26 18:17:04 +00:00
|
|
|
]
|
2017-06-29 14:03:38 +00:00
|
|
|
|
2019-06-18 14:14:20 +00:00
|
|
|
skia_sksl_gpu_sources = [
|
|
|
|
"$_src/sksl/SkSLCPPCodeGenerator.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLCPPCodeGenerator.h",
|
2019-06-18 14:14:20 +00:00
|
|
|
"$_src/sksl/SkSLCPPUniformCTypes.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLCPPUniformCTypes.h",
|
|
|
|
"$_src/sksl/SkSLCodeGenerator.h",
|
2019-06-18 14:14:20 +00:00
|
|
|
"$_src/sksl/SkSLGLSLCodeGenerator.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLGLSLCodeGenerator.h",
|
2019-06-18 14:14:20 +00:00
|
|
|
"$_src/sksl/SkSLHCodeGenerator.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLHCodeGenerator.h",
|
2019-06-18 14:14:20 +00:00
|
|
|
"$_src/sksl/SkSLMetalCodeGenerator.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLMetalCodeGenerator.h",
|
2019-06-18 14:14:20 +00:00
|
|
|
"$_src/sksl/SkSLOutputStream.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLOutputStream.h",
|
2019-06-18 14:14:20 +00:00
|
|
|
"$_src/sksl/SkSLPipelineStageCodeGenerator.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLPipelineStageCodeGenerator.h",
|
2019-06-18 14:14:20 +00:00
|
|
|
"$_src/sksl/SkSLSPIRVCodeGenerator.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLSPIRVCodeGenerator.h",
|
2020-02-19 20:35:26 +00:00
|
|
|
"$_src/sksl/SkSLSPIRVtoHLSL.cpp",
|
2020-06-02 16:29:20 +00:00
|
|
|
"$_src/sksl/SkSLSPIRVtoHLSL.h",
|
2019-06-18 14:14:20 +00:00
|
|
|
]
|
2019-06-17 14:27:55 +00:00
|
|
|
|
2017-07-05 20:19:09 +00:00
|
|
|
skia_gpu_processor_sources = [
|
2018-10-15 20:09:54 +00:00
|
|
|
"$_src/gpu/effects/GrAARectEffect.fp",
|
2018-04-06 14:37:55 +00:00
|
|
|
"$_src/gpu/effects/GrAlphaThresholdFragmentProcessor.fp",
|
2020-07-09 21:13:13 +00:00
|
|
|
"$_src/gpu/effects/GrArithmeticProcessor.fp",
|
2017-07-14 20:17:04 +00:00
|
|
|
"$_src/gpu/effects/GrBlurredEdgeFragmentProcessor.fp",
|
2018-03-12 18:03:47 +00:00
|
|
|
"$_src/gpu/effects/GrCircleBlurFragmentProcessor.fp",
|
2017-07-13 20:00:16 +00:00
|
|
|
"$_src/gpu/effects/GrCircleEffect.fp",
|
2020-01-22 15:39:31 +00:00
|
|
|
"$_src/gpu/effects/GrClampFragmentProcessor.fp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_src/gpu/effects/GrColorMatrixFragmentProcessor.fp",
|
2019-04-09 20:28:19 +00:00
|
|
|
"$_src/gpu/effects/GrComposeLerpEffect.fp",
|
2017-10-05 16:36:59 +00:00
|
|
|
"$_src/gpu/effects/GrConfigConversionEffect.fp",
|
2017-11-20 17:12:24 +00:00
|
|
|
"$_src/gpu/effects/GrConstColorProcessor.fp",
|
2020-02-26 18:28:42 +00:00
|
|
|
"$_src/gpu/effects/GrDeviceSpaceEffect.fp",
|
2020-07-09 19:29:33 +00:00
|
|
|
"$_src/gpu/effects/GrDitherEffect.fp",
|
2017-07-14 17:11:38 +00:00
|
|
|
"$_src/gpu/effects/GrEllipseEffect.fp",
|
2019-10-23 15:44:22 +00:00
|
|
|
"$_src/gpu/effects/GrHSLToRGBFilterEffect.fp",
|
2020-07-10 19:55:57 +00:00
|
|
|
"$_src/gpu/effects/GrHighContrastFilterEffect.fp",
|
2017-11-07 14:23:38 +00:00
|
|
|
"$_src/gpu/effects/GrLumaColorFilterEffect.fp",
|
2017-12-13 19:36:14 +00:00
|
|
|
"$_src/gpu/effects/GrMagnifierEffect.fp",
|
2019-03-05 15:03:20 +00:00
|
|
|
"$_src/gpu/effects/GrMixerEffect.fp",
|
2019-04-10 19:02:11 +00:00
|
|
|
"$_src/gpu/effects/GrOverrideInputFragmentProcessor.fp",
|
2019-10-23 15:44:22 +00:00
|
|
|
"$_src/gpu/effects/GrRGBToHSLFilterEffect.fp",
|
2017-12-20 17:00:11 +00:00
|
|
|
"$_src/gpu/effects/GrRRectBlurEffect.fp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_src/gpu/effects/GrRectBlurEffect.fp",
|
|
|
|
"$_src/gpu/gradients/GrClampedGradientEffect.fp",
|
2018-09-12 19:23:33 +00:00
|
|
|
"$_src/gpu/gradients/GrDualIntervalGradientColorizer.fp",
|
Reland "Base Gradient FP Refactor"
This reverts commit 1ea5656a285bcfef445d6f69eaab477e68595b54.
Reason for revert: Fixed google3 build failure
Original change's description:
> Revert "Base Gradient FP Refactor"
>
> This reverts commit 10f7a1e07554a362aef979d32ba288a009bdff90.
>
> Reason for revert: broke google3 roll
> Original change's description:
> > Base Gradient FP Refactor
> >
> > --
> >
> > Redefines how gradients will be written in the GPU back-end:
> >
> > They are split into three fragment processor components: master, layout, and colorizer.
> > The layout FP is responsible for converting the fragment position into an interpolant value, t.
> > Each high-level gradient--such as linear, radial, etc.--are implemented solely in a layout FP.
> > The colorizer FP is responsible for converting t into a color.
> > The master FP invokes the layout, clamps t into the proper domain, and then invokes the colorizer.
> > GrGradientShader provides factory functions to create FP graphs from SkGradientShader instances.
> > This pattern is documented in gpu/gradients/README.md.
> >
> > Goals for current CL
> > ====================
> >
> > Outline the FP components by providing .fp implementations for the simplest gradients.
> > Defines a two-color single interval colorizer and a linear gradient layout, and the master effect.
> > A MakeLinear() factory function is provided that can convert SkGradientShaders that fit these constraints.
> > SkLinearGradient first attempts to use the new system, falling back to the original GrGradientEffect.
> >
> > Future CLs
> > ==========
> >
> > To keep the CL reviews manageable, additional dependent CLs will be added that gradually replace past functionality.
> > A CL for each layout will be defined.
> > CLs for the different analytic colorizer cases and the textured gradient case will be defined.
> > Once the new system supports all current layouts and colorizer capabilities, all old GPU gradient code will be removed.
> > After this clean-up, analytic colorization can hopefully be expanded to reduce the usage of textured gradients.
> >
> > Bug: skia:
> > Change-Id: Iafe7b8b4071491a71c473babcd7bedda659150c1
> > Reviewed-on: https://skia-review.googlesource.com/148120
> > Commit-Queue: Michael Ludwig <michaelludwig@google.com>
> > Reviewed-by: Brian Salomon <bsalomon@google.com>
>
> TBR=bsalomon@google.com,michaelludwig@google.com
>
> Change-Id: Ib735e323795ac8874cb00b007a915786b50517a6
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: skia:
> Reviewed-on: https://skia-review.googlesource.com/153600
> Reviewed-by: Cary Clark <caryclark@google.com>
> Commit-Queue: Cary Clark <caryclark@google.com>
TBR=bsalomon@google.com,caryclark@google.com,michaelludwig@google.com
Change-Id: Ibf6ffbcb1af0dfbdac7317151aeb08f18f84c7fd
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/153887
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2018-09-12 19:22:16 +00:00
|
|
|
"$_src/gpu/gradients/GrLinearGradientLayout.fp",
|
2018-09-12 19:22:37 +00:00
|
|
|
"$_src/gpu/gradients/GrRadialGradientLayout.fp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_src/gpu/gradients/GrSingleIntervalGradientColorizer.fp",
|
2018-09-12 19:22:50 +00:00
|
|
|
"$_src/gpu/gradients/GrSweepGradientLayout.fp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_src/gpu/gradients/GrTextureGradientColorizer.fp",
|
Reland "Base Gradient FP Refactor"
This reverts commit 1ea5656a285bcfef445d6f69eaab477e68595b54.
Reason for revert: Fixed google3 build failure
Original change's description:
> Revert "Base Gradient FP Refactor"
>
> This reverts commit 10f7a1e07554a362aef979d32ba288a009bdff90.
>
> Reason for revert: broke google3 roll
> Original change's description:
> > Base Gradient FP Refactor
> >
> > --
> >
> > Redefines how gradients will be written in the GPU back-end:
> >
> > They are split into three fragment processor components: master, layout, and colorizer.
> > The layout FP is responsible for converting the fragment position into an interpolant value, t.
> > Each high-level gradient--such as linear, radial, etc.--are implemented solely in a layout FP.
> > The colorizer FP is responsible for converting t into a color.
> > The master FP invokes the layout, clamps t into the proper domain, and then invokes the colorizer.
> > GrGradientShader provides factory functions to create FP graphs from SkGradientShader instances.
> > This pattern is documented in gpu/gradients/README.md.
> >
> > Goals for current CL
> > ====================
> >
> > Outline the FP components by providing .fp implementations for the simplest gradients.
> > Defines a two-color single interval colorizer and a linear gradient layout, and the master effect.
> > A MakeLinear() factory function is provided that can convert SkGradientShaders that fit these constraints.
> > SkLinearGradient first attempts to use the new system, falling back to the original GrGradientEffect.
> >
> > Future CLs
> > ==========
> >
> > To keep the CL reviews manageable, additional dependent CLs will be added that gradually replace past functionality.
> > A CL for each layout will be defined.
> > CLs for the different analytic colorizer cases and the textured gradient case will be defined.
> > Once the new system supports all current layouts and colorizer capabilities, all old GPU gradient code will be removed.
> > After this clean-up, analytic colorization can hopefully be expanded to reduce the usage of textured gradients.
> >
> > Bug: skia:
> > Change-Id: Iafe7b8b4071491a71c473babcd7bedda659150c1
> > Reviewed-on: https://skia-review.googlesource.com/148120
> > Commit-Queue: Michael Ludwig <michaelludwig@google.com>
> > Reviewed-by: Brian Salomon <bsalomon@google.com>
>
> TBR=bsalomon@google.com,michaelludwig@google.com
>
> Change-Id: Ib735e323795ac8874cb00b007a915786b50517a6
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: skia:
> Reviewed-on: https://skia-review.googlesource.com/153600
> Reviewed-by: Cary Clark <caryclark@google.com>
> Commit-Queue: Cary Clark <caryclark@google.com>
TBR=bsalomon@google.com,caryclark@google.com,michaelludwig@google.com
Change-Id: Ibf6ffbcb1af0dfbdac7317151aeb08f18f84c7fd
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/153887
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2018-09-12 19:22:16 +00:00
|
|
|
"$_src/gpu/gradients/GrTiledGradientEffect.fp",
|
2020-04-03 15:59:37 +00:00
|
|
|
"$_src/gpu/gradients/GrTwoPointConicalGradientLayout.fp",
|
|
|
|
"$_src/gpu/gradients/GrUnrolledBinaryGradientColorizer.fp",
|
2017-07-05 20:19:09 +00:00
|
|
|
]
|