skia2/samplecode
Jim Van Verth e8199af1d9 Add ShadowFlag to use only blurs for concave shapes.
The geometric method for concave shadows seems to be failing in certain
cases. See: https://github.com/flutter/flutter/issues/84262. I've never
been satisfied with this solution and I've been thinking of removing it. This flag allows for Flutter to disable it for the time being until I
can determine if anyone else is using it.

Change-Id: Ia0a3f57002d94928f2baa655c88dc4d10b9edef8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/533881
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
2022-04-27 18:02:26 +00:00
..
DecodeFile.h Sample/Filter2View: make it work without /skimages 2019-07-08 17:05:23 +00:00
Sample2PtRadial.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
Sample3D.cpp Reland "[includes] Remove link between SkImage.h and SkImageEncoder.h" 2022-03-10 04:47:51 +00:00
Sample.cpp Ensure Sample::onOnceBeforeDraw before onAnimate. 2022-03-08 21:50:17 +00:00
Sample.h Ensure Sample::onOnceBeforeDraw before onAnimate. 2022-03-08 21:50:17 +00:00
SampleAARectModes.cpp Bitmap should use sampling options 2020-12-12 15:36:21 +00:00
SampleAARects.cpp Bitmap should use sampling options 2020-12-12 15:36:21 +00:00
SampleAndroidShadows.cpp Add ShadowFlag to use only blurs for concave shapes. 2022-04-27 18:02:26 +00:00
SampleAnimatedImage.cpp Fix implicit fallthroughs throughout Skia. 2020-06-11 22:29:53 +00:00
SampleAnimatedText.cpp De-namespace uses of MaskFormat 2022-04-21 15:55:21 +00:00
SampleAnimBlur.cpp Samples: clean up cruft 2019-07-17 18:29:50 +00:00
SampleArc.cpp more rect api simplifications 2019-08-25 10:12:57 +00:00
SampleAtlas.cpp Migrate to drawImage w/ sampling 2021-01-22 22:38:02 +00:00
SampleAudio.cpp Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
SampleCamera.cpp Revert "Move SkCamera.h to client_utils/android" 2022-04-25 12:33:01 +00:00
SampleChart.cpp Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
SampleChineseFling.cpp De-namespace uses of MaskFormat 2022-04-21 15:55:21 +00:00
SampleCircle.cpp Prepare to reenable unreachable-code warnings. 2022-02-04 21:45:39 +00:00
SampleClip.cpp Reland "[includes] Remove include link between SkPathRef.h and SkRRect.h" 2022-03-07 15:15:05 +00:00
SampleClock.cpp Revert "Reland "Revert "Use flat version of path-direction enum""" 2019-11-22 19:09:54 +00:00
SampleComplexClip.cpp Use SkClipOp::kFoo instead of kFoo_SkClipOp from SkClipOpPriv 2021-08-03 18:08:21 +00:00
SampleCowboy.cpp Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
SampleCusp.cpp Prepare to reenable unreachable-code warnings. 2022-02-04 21:45:39 +00:00
SampleDegenerateQuads.cpp Move all Ganesh source files into ganesh subdirectory. 2022-04-07 21:06:50 +00:00
SampleDegenerateTwoPtRadials.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleEffects.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleEmboss.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleFatBits.cpp Use SkClipOp::kFoo instead of kFoo_SkClipOp from SkClipOpPriv 2021-08-03 18:08:21 +00:00
SampleFillType.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleFilterBounds.cpp Remove 'invert' call from 'SetDeviceCoordinateSystem' 2022-04-20 16:27:02 +00:00
SampleFitCubicToCircle.cpp Add an interactive sample that fits cubics to circular arcs 2020-06-09 23:04:03 +00:00
SampleFlutterAnimate.cpp Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
SampleGlyphTransform.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleGradients.cpp Prepare to reenable unreachable-code warnings. 2022-02-04 21:45:39 +00:00
SampleHairCurves.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleHairModes.cpp Bitmap should use sampling options 2020-12-12 15:36:21 +00:00
SampleImageFilterDAG.cpp Remove 'invert' call from 'SetDeviceCoordinateSystem' 2022-04-20 16:27:02 +00:00
SampleLayers.cpp Revert "Move SkCamera.h to client_utils/android" 2022-04-25 12:33:01 +00:00
SampleLCD.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleManyRects.cpp Prepare to reenable unreachable-code warnings. 2022-02-04 21:45:39 +00:00
SampleMaterialShadows.cpp Revert "Move SkCamera.h to client_utils/android" 2022-04-25 12:33:01 +00:00
SampleMegaStroke.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleMixer.cpp Migrate to drawImage w/ sampling 2021-01-22 22:38:02 +00:00
SamplePatch.cpp Simplify common case of linear filtering with no mips 2021-01-15 16:47:16 +00:00
SamplePath.cpp Prepare to reenable unreachable-code warnings. 2022-02-04 21:45:39 +00:00
SamplePathClip.cpp Redraw duing mouse drag 2021-08-31 00:34:58 +00:00
SamplePathEffects.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SamplePathOverstroke.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SamplePathTessellators.cpp Move all Ganesh source files into ganesh subdirectory. 2022-04-07 21:06:50 +00:00
SamplePathText.cpp Fix when a glyph has a path 2021-12-07 14:58:29 +00:00
SamplePolyToPoly.cpp Fix cases of variable shadowing in /samplecode/. 2021-08-11 13:40:50 +00:00
SampleQuadStroker.cpp Pass sampling to surface.draw 2021-01-06 19:05:00 +00:00
SampleRectanizer.cpp [graphite] More steps towards a shared DrawAtlas class. 2022-04-21 14:20:45 +00:00
SampleRepeatTile.cpp Bitmap should use sampling options 2020-12-12 15:36:21 +00:00
SampleSBIX.cpp Add SampleSBIX to study sbix glyph translation. 2022-03-25 14:43:23 +00:00
SampleSG.cpp [includes] Remove include link between SkPath.h and SkPathRef.h 2022-03-09 00:55:54 +00:00
SampleShadowColor.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleShadowReference.cpp Reland "[includes] Remove include link between SkPathRef.h and SkRRect.h" 2022-03-07 15:15:05 +00:00
SampleShadowUtils.cpp Revert "Move SkCamera.h to client_utils/android" 2022-04-25 12:33:01 +00:00
SampleShip.cpp More hiding of legacy drawImage calls 2021-01-22 13:53:42 +00:00
SampleSimpleStroker.cpp Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
SampleSlides.cpp Simplify common case of linear filtering with no mips 2021-01-15 16:47:16 +00:00
SampleStringArt.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleStrokePath.cpp Prepare to reenable unreachable-code warnings. 2022-02-04 21:45:39 +00:00
SampleStrokeRect.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleStrokeVerb.cpp Reland "Purge ccpr" 2021-06-19 18:42:38 +00:00
SampleSVGFile.cpp Reland "Fix compilation w/ "skia_enable_svg = false" (take 2)" 2021-09-01 17:54:08 +00:00
SampleTextBox.cpp Add SkShaper::PurgeCaches. 2021-01-27 17:50:30 +00:00
SampleTextureUpload.cpp Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
SampleThinAA.cpp Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
SampleTiming.cpp Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
SampleVariableWidthStroker.cpp Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
SampleVertices.cpp Simplify common case of linear filtering with no mips 2021-01-15 16:47:16 +00:00
SampleWritePixels.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
SampleXfer.cpp Simplify common case for recttorect 2021-01-15 18:37:46 +00:00
SampleXfermodesBlur.cpp Fix cases of variable shadowing in samplecode/. 2021-08-02 19:25:01 +00:00
vertexdump.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00