skia2/bench
Chris Dalton febbffad1c Improve cubic KLM accuracy
Moves cubic root finding logic out of GrPathUtils and
PathOpsCubicIntersectionTest, and unifies it in SkGeometry.

"Normalizes" the homogeneous parameter values of the roots, rather
than the cubic inflection function. Does this normalization by
twiddling the exponents instead of division (which causes a loss of
precision).

Abandons the built-in derivatives in GrCubicEffect. These don't have
high enough precision on many mobile gpus. Instead we pass the KLM
matrix to the vertex shader via uniform, where we can use it to set up
new linear functionals from which the fragment shader can calculate
the gradient of the implicit function.

Bug: skia:4410
Change-Id: Ibd64e999520adc8cdef7803a492d3699995aef5a
Reviewed-on: https://skia-review.googlesource.com/19017
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
2017-06-09 17:13:54 +00:00
..
AAClipBench.cpp change SkClipOp to a class enum 2016-12-12 15:38:31 +00:00
AlternatingColorPatternBench.cpp Misc batch->op cleanup Part 1 of 2 2016-12-21 16:45:40 +00:00
AndroidCodecBench.cpp Remove SkAutoTDelete. 2016-11-03 19:03:40 +00:00
AndroidCodecBench.h SkTypes.h : move SkAutoMalloc into SkAutoMalloc.h 2017-01-11 18:55:34 +00:00
BenchLogger.cpp
BenchLogger.h
Benchmark.cpp
Benchmark.h move SkTRegister.h into tools 2017-01-11 19:53:36 +00:00
BezierBench.cpp chmod -x *.cpp *.h 2016-10-27 16:41:14 +00:00
BigPathBench.cpp
BitmapBench.cpp hide lockpixels api behind flag 2017-04-17 15:33:36 +00:00
BitmapRectBench.cpp
BitmapRegionDecoderBench.cpp
BitmapRegionDecoderBench.h Remove SkAutoTDelete. 2016-11-03 19:03:40 +00:00
BitmapScaleBench.cpp
BlurBench.cpp
BlurImageFilterBench.cpp
BlurOccludedRRectBench.cpp
BlurRectBench.cpp Mark overridden destructors with 'override' and remove 'virtual' 2017-03-22 16:06:18 +00:00
BlurRectsBench.cpp
BlurRoundRectBench.cpp Revert "Revert "make it illegal to include SkXfermode.h"" 2016-11-23 22:17:17 +00:00
ChartBench.cpp hide trivial helpers on canvas 2017-02-22 19:41:04 +00:00
check_bench_regressions.py
ChecksumBench.cpp
ChromeBench.cpp change clip-bounds getters to always return the rect 2017-01-23 17:14:53 +00:00
ClipMaskBench.cpp Reland "Add a clip mask bench" 2017-05-02 15:33:06 +00:00
CmapBench.cpp
CodecBench.cpp Remove SkAutoTDelete. 2016-11-03 19:03:40 +00:00
CodecBench.h SkTypes.h : move SkAutoMalloc into SkAutoMalloc.h 2017-01-11 18:55:34 +00:00
CodecBenchPriv.h
ColorCanvasDrawBitmapBench.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
ColorCodecBench.cpp SkColorSpace: remove named API, add gamut API 2017-02-07 19:33:37 +00:00
ColorCodecBench.h SkTypes.h : move SkAutoMalloc into SkAutoMalloc.h 2017-01-11 18:55:34 +00:00
ColorFilterBench.cpp stop using SkScalarMul 2017-02-14 19:45:24 +00:00
ColorPrivBench.cpp
ControlBench.cpp
CoverageBench.cpp Attempt 3: SkRasterPipelineBlitter: support A8 2017-01-13 13:25:28 +00:00
CubicKLMBench.cpp Improve cubic KLM accuracy 2017-06-09 17:13:54 +00:00
DashBench.cpp
DisplacementBench.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
DrawBitmapAABench.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
DrawLatticeBench.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
EncoderBench.cpp SkImageEncoder: simplify API 2016-11-23 16:40:32 +00:00
FontCacheBench.cpp
FontScalerBench.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
FSRectBench.cpp stop using SkScalarMul 2017-02-14 19:45:24 +00:00
GameBench.cpp hide lockpixels api behind flag 2017-04-17 15:33:36 +00:00
GeometryBench.cpp
GLBench.cpp skslc can now be compiled with no Skia dependencies, in preparation for its eventual 2017-03-31 18:49:51 +00:00
GLBench.h Turned on SkSL->GLSL compiler 2016-10-12 06:39:56 -07:00
GLInstancedArraysBench.cpp Allow FPs to elevate default precision for the entire fragment program 2017-04-05 14:00:50 +00:00
GLVec4ScalarBench.cpp Allow FPs to elevate default precision for the entire fragment program 2017-04-05 14:00:50 +00:00
GLVertexAttributesBench.cpp Allow FPs to elevate default precision for the entire fragment program 2017-04-05 14:00:50 +00:00
GMBench.cpp
GMBench.h Mark overridden destructors with 'override' and remove 'virtual' 2017-03-22 16:06:18 +00:00
GradientBench.cpp Remove SkLinearGradient::kForce4fContext_PrivateFlag 2017-06-07 20:24:51 +00:00
GrMemoryPoolBench.cpp Remove SkAutoTDelete. 2016-11-03 19:03:40 +00:00
GrMipMapBench.cpp Remove budgeted parameter from SkSurface::makeImageSnapshot (take 2) 2017-03-20 13:50:35 +00:00
GrResourceCacheBench.cpp bench, samples, etc: s/SkAutoTUnref/sk_sp/ 2016-11-07 15:17:32 +00:00
gUniqueGlyphIDs.h Make header files self-sufficient 2017-02-10 01:19:52 +00:00
HairlinePathBench.cpp
HardStopGradientBench_ScaleNumColors.cpp
HardStopGradientBench_ScaleNumHardStops.cpp
HardStopGradientBench_SpecialHardStops.cpp
ImageBench.cpp Fix native_image_to_raster_surface crash in ANGLE msaa configs 2017-06-08 15:37:40 +00:00
ImageCacheBench.cpp
ImageCacheBudgetBench.cpp Remove SkAutoTDeleteArray 2016-11-02 21:30:38 +00:00
ImageFilterCollapse.cpp stop using SkScalarMul 2017-02-14 19:45:24 +00:00
ImageFilterDAGBench.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
InterpBench.cpp
LightingBench.cpp stop using SkScalarMul 2017-02-14 19:45:24 +00:00
LineBench.cpp
MagnifierBench.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
MathBench.cpp *SkTCast<int*>(float*) -> memcpy 2016-09-29 15:48:04 +00:00
Matrix44Bench.cpp
MatrixBench.cpp
MatrixConvolutionBench.cpp
MeasureBench.cpp
MemsetBench.cpp
MergeBench.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
microbench.json
MipMapBench.cpp Reland: Finish up mip opts: 2x3 and 3x2 2017-04-11 17:20:24 +00:00
MorphologyBench.cpp
MutexBench.cpp
nanobench.cpp add testing flag to force rasterpipeline 2017-06-05 14:45:11 +00:00
nanobench.h Rename GrContextFactory::ContextOptions to ContextOverrides 2017-02-21 21:45:45 +00:00
pack_int_uint16_t_Bench.cpp
PatchBench.cpp color-correct patch 2017-05-23 15:44:46 +00:00
PathBench.cpp SkSize can be aggregate-initialized 2017-04-11 18:57:20 +00:00
PathIterBench.cpp
PDFBench.cpp Mark overridden destructors with 'override' and remove 'virtual' 2017-03-22 16:06:18 +00:00
PerlinNoiseBench.cpp Hide SkPerlinNoiseShader impl details 2017-05-18 17:24:39 +00:00
PictureNestingBench.cpp
PictureOverheadBench.cpp bench clip overhead during recording 2017-03-06 21:45:02 +00:00
PicturePlaybackBench.cpp Remove SkAutoTDelete. 2016-11-03 19:03:40 +00:00
PremulAndUnpremulAlphaOpsBench.cpp Rename SkConfig8888/SkPixelInfo to SkConvertPixels 2017-02-15 13:50:55 +00:00
QuickRejectBench.cpp
ReadPixBench.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
RecordingBench.cpp Remove SkLiteDL::makeThreadsafe(). 2017-03-02 21:07:42 +00:00
RecordingBench.h Refactor SkLiteDL to no longer extend SkDrawable. 2017-03-02 20:16:17 +00:00
RectanizerBench.cpp Remove SkAutoTDelete. 2016-11-03 19:03:40 +00:00
RectBench.cpp Fix Memcheck:Overlap in setting up rect bench names 2017-03-01 15:22:42 +00:00
RectoriBench.cpp remove unused code around SK_SUPPORT_LEGACY_XFERMODE_PARAM 2016-11-03 19:54:08 +00:00
RefCntBench.cpp
RegionBench.cpp
RegionContainBench.cpp
RepeatTileBench.cpp hide lockpixels api behind flag 2017-04-17 15:33:36 +00:00
ResultsWriter.h Mark overridden destructors with 'override' and remove 'virtual' 2017-03-22 16:06:18 +00:00
RotatedRectBench.cpp make SkXfermode.h go away 2016-11-16 15:38:11 +00:00
RTreeBench.cpp
ScalarBench.cpp
ShaderMaskBench.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
ShadowBench.cpp Add microbench for shadows 2017-05-18 18:57:24 +00:00
ShapesBench.cpp
Sk4fBench.cpp
SkBlend_optsBench.cpp Plumb dst color space in many places, rather than "mode" 2016-12-09 20:31:23 +00:00
SkGlyphCacheBench.cpp
SkLinearBitmapPipelineBench.cpp Reland of SkShaderBase 2017-05-25 14:59:07 +00:00
SKPAnimationBench.cpp change clip-bounds getters to always return the rect 2017-01-23 17:14:53 +00:00
SKPAnimationBench.h bench, samples, etc: s/SkAutoTUnref/sk_sp/ 2016-11-07 15:17:32 +00:00
SKPBench.cpp change clip-bounds getters to always return the rect 2017-01-23 17:14:53 +00:00
SKPBench.h bench, samples, etc: s/SkAutoTUnref/sk_sp/ 2016-11-07 15:17:32 +00:00
skpbench.json
SkRasterPipelineBench.cpp update SkRasterPipeline::run() to also take y 2017-06-01 17:05:13 +00:00
SortBench.cpp
StreamBench.cpp speedup dynamicwstream 2016-12-15 19:49:31 +00:00
StrokeBench.cpp
SwizzleBench.cpp
TableBench.cpp
TextBench.cpp add drawString helper to canvas 2017-04-28 20:41:04 +00:00
TextBlobBench.cpp
TileBench.cpp hide lockpixels api behind flag 2017-04-17 15:33:36 +00:00
TileImageFilterBench.cpp
TopoSortBench.cpp
VertBench.cpp move vertex-mode enum into SkVertices 2017-04-03 15:50:16 +00:00
WritePixelsBench.cpp Revert "Revert "Reland: Remove SkLights include from SkCanvas.h"" 2017-05-03 19:17:11 +00:00
WriterBench.cpp
XfermodeBench.cpp hide trivial helpers on canvas 2017-02-22 19:41:04 +00:00