skia2/include/gpu/effects
Brian Salomon 85eb4226a4 Start of rewrite of GrFragmentProcessor optimizations.
This adds a replacement for computeInvariantOutput buts does not use it yet. The replacement allows for three types of optimizations:

* known input color -> known output color for GrFP elimination
* tracking of whether all color processors modulate their input for the "tweak alpha" optimziation
* opaqueness tracking

This loses some of the generality of computInvariantOutput. It does not track the known output status of individual color components (other than opaque alpha). It does not track whether GrFragmentProcessors read their input color. It doesn't allow a processor that will receive non-constant output to advertise that it produces a constant output. These could probably be added back in the unlikely case that they prove valuable.

Unlike computeInvariantOutput the optimizations are decided at instantiation time and constant colors are expressed as GrColor4f rather than GrColor.

Change-Id: I684d3f9050693dde2d28154fa695e049ed8cf61a
Reviewed-on: https://skia-review.googlesource.com/7481
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-01-27 14:56:48 +00:00
..
GrConstColorProcessor.h Start of rewrite of GrFragmentProcessor optimizations. 2017-01-27 14:56:48 +00:00
GrCoverageSetOpXP.h Revert "Revert "Make it possible to query GrXPFactory for dst texture without GrPipelineAnalysis."" 2017-01-20 20:04:01 +00:00
GrCustomXfermode.h Revert "Revert "Removing ref counting from GrXPFactory."" 2017-01-09 17:21:03 +00:00
GrPorterDuffXferProcessor.h Revert "Revert "Make it possible to query GrXPFactory for dst texture without GrPipelineAnalysis."" 2017-01-20 20:04:01 +00:00
GrXfermodeFragmentProcessor.h remove xfermode from public api 2016-10-28 20:06:17 +00:00