skia2/tests
John Stiles 0ed9f31f6a Migrate several GLSL workaround unit tests to golden files.
We now support building an SkSL golden output twice, once honoring the
custom #pragma settings, and once more ignoring the settings. This
allows us to see the output of the workaround technique, alongside the
"default-settings" output which should not contain a workaround.

To implement this, skslc now supports a flag: --[no]settings.
When it's set, /*#pragma settings*/ comments are honored. When it's not
set, skslc ignores the comments. compile_sksl_tests.py passes this flag
along to skslc.

This approach is not strictly limited to workarounds; the
"TypePrecision" GLSL test was also updated to use this technique.

Change-Id: I79204df047b024533ed6bc1f4c088e0e878d5bb1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317246
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-09-17 16:41:18 +00:00
..
sksl Migrate several GLSL workaround unit tests to golden files. 2020-09-17 16:41:18 +00:00
AAClipTest.cpp Enable ClangTidy flag bugprone-suspicious-string-compare. 2020-08-16 03:54:08 +00:00
AdvancedBlendTest.cpp
AndroidCodecTest.cpp A new way to specify YUVA planar data from SkCodec to SkImage_Lazy 2020-08-24 14:25:32 +00:00
AnimatedImageTest.cpp
AnnotationTest.cpp
ApplyGammaTest.cpp
ArenaAllocTest.cpp SkArenaAlloc aligned under-allocation 2020-09-08 19:34:36 +00:00
AsADashTest.cpp
BackendAllocationTest.cpp Add GrDirectContext arg to SkImage::readPixels 2020-08-27 19:26:29 +00:00
BackendSurfaceMutableStateTest.cpp
BadIcoTest.cpp
BitmapCopyTest.cpp
BitmapGetColorTest.cpp
BitmapTest.cpp
BitSetTest.cpp
BlendTest.cpp
BlitMaskClip.cpp
BlurTest.cpp Simplify SkComputeBlurredRRectParams 2020-08-25 15:04:08 +00:00
BRDTest.cpp
BulkRectTest.cpp
CachedDataTest.cpp
CachedDecodingPixelRefTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
CanvasStateHelpers.cpp
CanvasStateHelpers.h
CanvasStateTest.cpp
CanvasTest.cpp Use SkClipOp::kIntersect instead of kReplace_ClipOp 2020-09-16 18:37:37 +00:00
ChecksumTest.cpp
ClearTest.cpp
ClipBoundsTest.cpp
ClipCubicTest.cpp use pathbuilder 2020-08-25 16:29:48 +00:00
ClipperTest.cpp Enable ClangTidy flag bugprone-suspicious-string-compare. 2020-08-16 03:54:08 +00:00
ClipStackTest.cpp Enable ClangTidy check modernize-use-nullptr. 2020-08-14 16:14:30 +00:00
CodecAnimTest.cpp Enable ClangTidy flag bugprone-suspicious-string-compare. 2020-08-16 03:54:08 +00:00
CodecExactReadTest.cpp
CodecPartialTest.cpp Enable ClangTidy flag bugprone-suspicious-string-compare. 2020-08-16 03:54:08 +00:00
CodecPriv.h
CodecRecommendedTypeTest.cpp
CodecTest.cpp Fix -Wstring-concatenation warnings in clang 12 2020-08-21 17:17:50 +00:00
ColorFilterTest.cpp
ColorMatrixTest.cpp
ColorPrivTest.cpp
ColorSpaceTest.cpp
ColorTest.cpp
CompressedBackendAllocationTest.cpp Add GrDirectContext arg to SkImage::readPixels 2020-08-27 19:26:29 +00:00
CopySurfaceTest.cpp
CrbugOssfuzz21688.cpp Simplify SkSL::String by removing unused parts. 2020-08-17 14:21:09 +00:00
CTest.cpp Enable ClangTidy check modernize-use-nullptr. 2020-08-14 16:14:30 +00:00
CubicMapTest.cpp
DashPathEffectTest.cpp
DataRefTest.cpp
DebugLayerManagerTest.cpp
DefaultPathRendererTest.cpp
DeferredDisplayListTest.cpp Add GrInternalSurfaceFlag for vulkan input attachment. 2020-08-27 20:05:29 +00:00
DequeTest.cpp
DescriptorTest.cpp
DeviceTest.cpp
DiscardableMemoryPoolTest.cpp
DiscardableMemoryTest.cpp
DrawBitmapRectTest.cpp
DrawOpAtlasTest.cpp Add support for plumbing GrDstSampleType through Ops and Pipeline creation. 2020-09-11 14:42:34 +00:00
DrawPathTest.cpp
DrawTextTest.cpp
EGLImageTest.cpp
EmptyPathTest.cpp
EncodedInfoTest.cpp
EncodeTest.cpp Add GrDirectContext arg to SkImage::readPixels 2020-08-27 19:26:29 +00:00
ExifTest.cpp
ExtendedSkColorTypeTests.cpp Add GrDirectContext arg to SkImage::readPixels 2020-08-27 19:26:29 +00:00
F16StagesTest.cpp
FakeStreams.h
FillPathTest.cpp
FitsInTest.cpp
FlattenableFactoryToName.cpp
FlattenableNameToFactory.cpp
FlattenDrawableTest.cpp
Float16Test.cpp
FloatingPointTextureTest.cpp
FontHostStreamTest.cpp
FontHostTest.cpp
FontMgrAndroidParserTest.cpp Enable ClangTidy check readability-redundant-smartptr-get. 2020-08-16 15:56:48 +00:00
FontMgrFontConfigTest.cpp
FontMgrTest.cpp
FontNamesTest.cpp
FontTest.cpp SkCustomTypefaceBuilder to set SkFontStyle 2020-08-19 00:09:55 +00:00
FrontBufferedStreamTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
GeometryTest.cpp Reland "Add utilities to SkGeometry for quad and cubic rotation angles" 2020-08-21 17:57:40 +00:00
GifTest.cpp
GLBackendSurfaceTest.cpp Separate our use of sampler object from GL support. 2020-09-01 18:55:11 +00:00
GlyphRunTest.cpp
GpuDrawPathTest.cpp
GpuRectanizerTest.cpp
GradientTest.cpp Enable ClangTidy check readability-redundant-smartptr-get. 2020-08-16 15:56:48 +00:00
GrAHardwareBufferTest.cpp
GrBlockAllocatorTest.cpp
GrCCPRTest.cpp Revert "Revert "use pathbuilder"" 2020-08-26 17:35:34 +00:00
GrClipStackTest.cpp Fully disable CCPR for unit test 2020-09-15 21:20:51 +00:00
GrContextAbandonTest.cpp
GrContextFactoryTest.cpp
GrContextOOM.cpp
GrDDLImageTest.cpp Remove unused factories that take characterizations. 2020-08-26 21:29:44 +00:00
GrFinishedFlushTest.cpp
GrGLExtensionsTest.cpp
GrMemoryPoolTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
GrMeshTest.cpp Add support for plumbing GrDstSampleType through Ops and Pipeline creation. 2020-09-11 14:42:34 +00:00
GrMipMappedTest.cpp
GrOpListFlushTest.cpp
GrPipelineDynamicStateTest.cpp Add support for plumbing GrDstSampleType through Ops and Pipeline creation. 2020-09-11 14:42:34 +00:00
GrPorterDuffTest.cpp
GrQuadBufferTest.cpp
GrQuadCropTest.cpp
GrStyledShapeTest.cpp
GrSubmittedFlushTest.cpp
GrSurfaceTest.cpp Add GrInternalSurfaceFlag for vulkan input attachment. 2020-08-27 20:05:29 +00:00
GrTBlockListTest.cpp
GrTestingBackendTextureUploadTest.cpp
GrTextureMipMapInvalidationTest.cpp
GrThreadSafeViewCacheTest.cpp Add initial GrThreadSafeUniquelyKeyedProxyViewCache implementation 2020-09-16 16:07:27 +00:00
GrUploadPixelsTests.cpp
HashTest.cpp
HighContrastFilterTest.cpp
HSVRoundTripTest.cpp
ICCTest.cpp
ImageBitmapTest.cpp
ImageCacheTest.cpp
ImageFilterCacheTest.cpp
ImageFilterTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
ImageFrom565Bitmap.cpp
ImageGeneratorTest.cpp
ImageIsOpaqueTest.cpp
ImageNewShaderTest.cpp Add GrDirectContext arg to SkImage::readPixels 2020-08-27 19:26:29 +00:00
ImageTest.cpp New version of SkImage::MakeFromYUVAPixmaps() 2020-09-15 16:13:50 +00:00
IncrTopoSortTest.cpp
IndexedPngOverflowTest.cpp
InfRectTest.cpp
InsetConvexPolyTest.cpp
InterpolatorTest.cpp Enable ClangTidy check modernize-use-nullptr. 2020-08-14 16:14:30 +00:00
InvalidIndexedPngTest.cpp
IsClosedSingleContourTest.cpp use pathbuilder 2020-08-25 22:27:20 +00:00
JSONTest.cpp
LayerDrawLooperTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
LazyProxyTest.cpp Add support for plumbing GrDstSampleType through Ops and Pipeline creation. 2020-09-11 14:42:34 +00:00
LListTest.cpp
LRUCacheTest.cpp
M44Test.cpp
MallocPixelRefTest.cpp
MaskCacheTest.cpp
MathTest.cpp impl SkMulDiv255Round with SkMul16ShiftRound 2020-09-09 17:01:17 +00:00
Matrix44Test.cpp Enable ClangTidy check modernize-use-nullptr. 2020-08-14 16:14:30 +00:00
MatrixClipCollapseTest.cpp
MatrixColorFilterTest.cpp
MatrixTest.cpp
MD5Test.cpp
MemoryTest.cpp
MemsetTest.cpp
MessageBusTest.cpp
MetaDataTest.cpp
MipMapTest.cpp expose clear way to create default mips 2020-09-12 15:19:15 +00:00
MtlBackendAllocationTest.mm
MtlCopySurfaceTest.mm Revert "Remove ARC from Metal backend" 2020-08-24 17:16:54 +00:00
MultiPictureDocumentTest.cpp remove DrawPictureMode enum 2020-08-24 17:52:33 +00:00
NdkDecodeTest.cpp
NdkEncodeTest.cpp
NonlinearBlendingTest.cpp
OctoBoundsTest.cpp
OffsetSimplePolyTest.cpp
OnceTest.cpp
OnFlushCallbackTest.cpp Add support for plumbing GrDstSampleType through Ops and Pipeline creation. 2020-09-11 14:42:34 +00:00
OpChainTest.cpp Add support for plumbing GrDstSampleType through Ops and Pipeline creation. 2020-09-11 14:42:34 +00:00
OSPathTest.cpp
OverAlignedTest.cpp
PackBitsTest.cpp
PackedConfigsTextureTest.cpp
PaintImageFilterTest.cpp
PaintTest.cpp
ParametricStageTest.cpp
ParseColorTest.cpp
ParsePathTest.cpp
PathBuilderTest.cpp Move convexity enum out of public 2020-08-30 13:04:22 +00:00
PathCoverageTest.cpp
PathMeasureTest.cpp
PathOpsAngleIdeas.cpp
PathOpsAngleTest.cpp
PathOpsAsWindingTest.cpp
PathOpsBattles.cpp
PathOpsBoundsTest.cpp
PathOpsBuilderConicTest.cpp
PathOpsBuilderTest.cpp
PathOpsBuildUseTest.cpp
PathOpsChalkboardTest.cpp
PathOpsConicIntersectionTest.cpp
PathOpsConicLineIntersectionTest.cpp
PathOpsConicQuadIntersectionTest.cpp
PathOpsCubicConicIntersectionTest.cpp
PathOpsCubicIntersectionTest.cpp
PathOpsCubicIntersectionTestData.cpp
PathOpsCubicIntersectionTestData.h
PathOpsCubicLineIntersectionIdeas.cpp
PathOpsCubicLineIntersectionTest.cpp
PathOpsCubicQuadIntersectionTest.cpp
PathOpsCubicReduceOrderTest.cpp
PathOpsDCubicTest.cpp
PathOpsDebug.cpp
PathOpsDebug.h
PathOpsDLineTest.cpp
PathOpsDPointTest.cpp
PathOpsDRectTest.cpp
PathOpsDVectorTest.cpp
PathOpsExtendedTest.cpp
PathOpsExtendedTest.h
PathOpsFuzz763Test.cpp
PathOpsInverseTest.cpp
PathOpsIssue3651.cpp
PathOpsLineIntersectionTest.cpp
PathOpsLineParametetersTest.cpp
PathOpsOpCircleThreadedTest.cpp
PathOpsOpCubicThreadedTest.cpp
PathOpsOpLoopThreadedTest.cpp
PathOpsOpRectThreadedTest.cpp
PathOpsOpTest.cpp Enable ClangTidy check modernize-use-nullptr. 2020-08-14 16:14:30 +00:00
PathOpsQuadIntersectionTest.cpp
PathOpsQuadIntersectionTestData.cpp
PathOpsQuadIntersectionTestData.h
PathOpsQuadLineIntersectionTest.cpp
PathOpsQuadLineIntersectionThreadedTest.cpp
PathOpsQuadReduceOrderTest.cpp
PathOpsSimplifyDegenerateThreadedTest.cpp
PathOpsSimplifyFailTest.cpp
PathOpsSimplifyQuadralateralsThreadedTest.cpp
PathOpsSimplifyQuadThreadedTest.cpp
PathOpsSimplifyRectThreadedTest.cpp
PathOpsSimplifyTest.cpp
PathOpsSimplifyTrianglesThreadedTest.cpp
PathOpsSkpTest.cpp
PathOpsTestCommon.cpp
PathOpsTestCommon.h
PathOpsThreadedCommon.cpp
PathOpsThreadedCommon.h
PathOpsThreeWayTest.cpp
PathOpsTigerTest.cpp
PathOpsTightBoundsTest.cpp
PathOpsTSectDebug.h
PathOpsTypesTest.cpp
PathRendererCacheTests.cpp
PathTest.cpp Simplify firstdirection 2020-08-30 15:01:02 +00:00
PDFDeflateWStreamTest.cpp
PDFDocumentTest.cpp Fix -Wstring-concatenation warnings in clang 12 2020-08-21 17:17:50 +00:00
PDFGlyphsToUnicodeTest.cpp
PDFJpegEmbedTest.cpp
PDFMetadataAttributeTest.cpp
PDFOpaqueSrcModeToSrcOverTest.cpp
PDFPrimitivesTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
PDFTaggedLinkTest.cpp
PDFTaggedPruningTest.cpp
PDFTaggedTableTest.cpp
PDFTaggedTest.cpp
PictureBBHTest.cpp
PictureShaderTest.cpp
PictureTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
PinnedImageTest.cpp
PixelRefTest.cpp
Point3Test.cpp
PointTest.cpp
PolyUtilsTest.cpp
PremulAlphaRoundTripTest.cpp
PrimitiveProcessorTest.cpp Add support for plumbing GrDstSampleType through Ops and Pipeline creation. 2020-09-11 14:42:34 +00:00
ProcessorTest.cpp Add support for plumbing GrDstSampleType through Ops and Pipeline creation. 2020-09-11 14:42:34 +00:00
ProgramsTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
PromiseImageTest.cpp
ProxyConversionTest.cpp
ProxyRefTest.cpp Enable ClangTidy check readability-redundant-smartptr-get. 2020-08-16 15:56:48 +00:00
ProxyTest.cpp
QuickRejectTest.cpp
RandomTest.cpp
ReadPixelsTest.cpp Use SkClipOp::kIntersect instead of kReplace_ClipOp 2020-09-16 18:37:37 +00:00
ReadWriteAlphaTest.cpp
RecordDrawTest.cpp
RecorderTest.cpp
RecordingXfermodeTest.cpp Enable ClangTidy flag bugprone-suspicious-string-compare. 2020-08-16 03:54:08 +00:00
RecordOptsTest.cpp
RecordPatternTest.cpp
RecordTest.cpp
RecordTestUtils.h
RectangleTextureTest.cpp
RectTest.cpp
RefCntTest.cpp
RegionTest.cpp
RenderTargetContextTest.cpp
RepeatedClippedBlurTest.cpp
ResourceAllocatorTest.cpp Add GrInternalSurfaceFlag for vulkan input attachment. 2020-08-27 20:05:29 +00:00
ResourceCacheTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
RoundRectTest.cpp Fix SkRRect::ConservativeIntersect when inputs share corner 2020-09-08 21:01:16 +00:00
RRectInPathTest.cpp
RTreeTest.cpp
SafeMathTest.cpp
SamplePatternDictionaryTest.cpp
ScalarTest.cpp
ScaleToSidesTest.cpp
SerializationTest.cpp remove unused enums for picture-recorder 2020-08-21 21:20:40 +00:00
SerialProcsTest.cpp Enable ClangTidy flag bugprone-suspicious-string-compare. 2020-08-16 03:54:08 +00:00
ShaderOpacityTest.cpp
ShaderTest.cpp
ShadowTest.cpp
ShaperTest.cpp
SizeTest.cpp
SkBase64Test.cpp
Skbug5221.cpp
Skbug6389.cpp
Skbug6653.cpp
SkColor4fTest.cpp
SkColorSpaceXformStepsTest.cpp
SkDOMTest.cpp
SkFixed15Test.cpp
SkGaussFilterTest.cpp
SkGlyphBufferTest.cpp
skia_test.cpp
SkImageTest.cpp
SkNxTest.cpp
SkPEGTest.cpp
SkRasterPipelineTest.cpp
SkRemoteGlyphCacheTest.cpp
SkResourceCacheTest.cpp
SkRuntimeEffectTest.cpp Allow casting to lower precision types in runtime effects 2020-09-14 18:08:17 +00:00
SkScalerCacheTest.cpp
SkShaperJSONWriterTest.cpp
SkSharedMutexTest.cpp
SkSLErrorTest.cpp Move constant swizzle handling into the IR generator 2020-09-16 15:27:41 +00:00
SkSLFPTest.cpp SkSL optimization now happens in convertProgram rather than being a 2020-09-14 16:34:47 +00:00
SkSLGLSLTest.cpp Migrate several GLSL workaround unit tests to golden files. 2020-09-17 16:41:18 +00:00
SkSLInterpreterTest.cpp Pass non-temporary Program::Settings to convertProgram. 2020-09-11 16:37:34 +00:00
SkSLMemoryLayoutTest.cpp Revamped handling of SkSL node kinds 2020-09-08 15:00:10 +00:00
SkSLMetalTest.cpp Move constant swizzle handling into the IR generator 2020-09-16 15:27:41 +00:00
SkSLSPIRVTest.cpp
SkStrikeCacheTest.cpp
SkUTFTest.cpp
SkVMTest.cpp add another q14x2 test 2020-09-16 16:17:47 +00:00
SkVxTest.cpp
SortTest.cpp
SpecialImageTest.cpp
SpecialSurfaceTest.cpp
SrcOverTest.cpp
SrcSrcOverBatchTest.cpp
SRGBReadWritePixelsTest.cpp
SRGBTest.cpp
StreamBufferTest.cpp
StreamTest.cpp
StringTest.cpp
StrokerTest.cpp
StrokeTest.cpp Relax SkStrokeRec::hasEqualEffect 2020-09-15 20:05:40 +00:00
SubsetPath.cpp
SubsetPath.h
SurfaceSemaphoreTest.cpp
SurfaceTest.cpp
SVGDeviceTest.cpp
SwizzlerTest.cpp
TArrayTest.cpp
TDPQueueTest.cpp
TemplatesTest.cpp
Test.cpp
Test.h
TestTest.cpp
TestUtils.cpp Add initial GrThreadSafeUniquelyKeyedProxyViewCache implementation 2020-09-16 16:07:27 +00:00
TestUtils.h Add initial GrThreadSafeUniquelyKeyedProxyViewCache implementation 2020-09-16 16:07:27 +00:00
TextBlobCacheTest.cpp
TextBlobTest.cpp
TextureBindingsResetTest.cpp
TextureOpTest.cpp
TextureProxyTest.cpp
TextureStripAtlasManagerTest.cpp
Time.cpp
TLazyTest.cpp
TopoSortTest.cpp
TraceMemoryDumpTest.cpp
TracingTest.cpp
TransferPixelsTest.cpp
TriangulatingPathRendererTests.cpp
TypefaceTest.cpp Notify when SkFontMetrics bounds are bogus. 2020-08-20 15:22:32 +00:00
UnicodeTest.cpp
UtilsTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
VerticesTest.cpp Enable ClangTidy flag bugprone-suspicious-string-compare. 2020-08-16 03:54:08 +00:00
VkBackendSurfaceTest.cpp
VkDrawableTest.cpp Replace 'typedef xxxxx INHERITED' with 'using INHERITED = xxxx;'. 2020-09-03 03:41:26 +00:00
VkHardwareBufferTest.cpp Add image usage flags to GrVkImageInfo 2020-08-21 16:34:20 +00:00
VkPriorityExtensionTest.cpp
VkProtectedContextTest.cpp Add image usage flags to GrVkImageInfo 2020-08-21 16:34:20 +00:00
VkWrapTests.cpp
VkYcbcrSamplerTest.cpp
VptrTest.cpp
WangsFormulaTest.cpp Move GrWangsFormula::nextlog2 to sk_float_nextlog2 2020-08-19 23:45:12 +00:00
WindowRectanglesTest.cpp
WritePixelsTest.cpp
Writer32Test.cpp
YUVCacheTest.cpp
YUVTest.cpp Reland "Add idea of DataType to SkYUVAPixmapInfo." 2020-09-03 18:05:17 +00:00