skia2/tests
Stephen White 0cb31675f3 GrTessellator: fix intersection above the first vertex.
Handle the case where the an intersection falls not only above both
edge endpoints, but above the first vertex in the mesh. This requires
passing the mesh into check_for_intersection(), in order to modify the
head. We also need to rewind the mesh after insertion, since we need
to rewind to the newly-inserted vertex.

This also cleans up vertex ID computation a little (for logging), so
that vertices before the first vertex or after the last have a
reasonable ID. It also cleans up the intersection-on-endpoint 
special cases by refactoring the calls to split_edge().

BUG=730687

Change-Id: Idea736eca7b7c3c5d8a470b1373a16ad8e649e80
Reviewed-on: https://skia-review.googlesource.com/19069
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2017-06-08 20:07:04 +00:00
..
AAClipTest.cpp
AnnotationTest.cpp
ApplyGammaTest.cpp
ArenaAllocTest.cpp SkSTArenaAlloc 2017-05-24 19:20:45 +00:00
AsADashTest.cpp
BadIcoTest.cpp Defend against ICOs with large BMPs embedded 2017-06-05 18:28:19 +00:00
BitmapCopyTest.cpp
BitmapGetColorTest.cpp
BitmapTest.cpp
BitSetTest.cpp
BlendTest.cpp
BlitMaskClip.cpp
BlurTest.cpp
CachedDataTest.cpp
CachedDecodingPixelRefTest.cpp raster pipeline sprite blitter 2017-06-01 15:02:08 +00:00
CanvasStateHelpers.cpp
CanvasStateHelpers.h
CanvasStateTest.cpp
CanvasTest.cpp
ChecksumTest.cpp
ClampRangeTest.cpp
ClearTest.cpp Remove accessRenderTarget call from Clear tests 2017-06-02 19:21:37 +00:00
ClipBoundsTest.cpp
ClipCubicTest.cpp
ClipperTest.cpp
ClipStackTest.cpp Fix GrReducedClip.cpp: assertion failure surrounding tiny query bounds 2017-06-05 19:53:06 +00:00
CodecAnimTest.cpp Make SkCodec more flexible about its required frame 2017-06-07 20:15:17 +00:00
CodecExactReadTest.cpp
CodecPartialTest.cpp
CodecPriv.h
CodecTest.cpp Make SkCodec more flexible about its required frame 2017-06-07 20:15:17 +00:00
ColorFilterTest.cpp
ColorMatrixTest.cpp
ColorPrivTest.cpp
ColorSpaceTest.cpp
ColorSpaceXformTest.cpp
ColorTest.cpp
CopySurfaceTest.cpp
CPlusPlusEleven.cpp
CTest.cpp
DashPathEffectTest.cpp
DataRefTest.cpp Add smartptr SkRWBuffer snapshot methods 2017-06-01 16:00:45 +00:00
DequeTest.cpp
DetermineDomainModeTest.cpp Disable deferred proxies for M60 branch 2017-05-31 23:12:39 +00:00
DeviceLooperTest.cpp
DeviceTest.cpp
DFPathRendererTest.cpp
DiscardableMemoryPoolTest.cpp
DiscardableMemoryTest.cpp
DrawBitmapRectTest.cpp
DrawFilterTest.cpp
DrawPathTest.cpp
DrawTextTest.cpp
DynamicHashTest.cpp
EGLImageTest.cpp
EmptyPathTest.cpp
EncodeTest.cpp
ExifTest.cpp
F16StagesTest.cpp update SkRasterPipeline::run() to also take y 2017-06-01 17:05:13 +00:00
FakeStreams.h
FillPathTest.cpp
FitsInTest.cpp
FlattenableCustomFactory.cpp
FlattenableFactoryToName.cpp
FlattenDrawableTest.cpp
Float16Test.cpp
FloatingPointTextureTest.cpp
FontHostStreamTest.cpp
FontHostTest.cpp
FontMgrAndroidParserTest.cpp
FontMgrTest.cpp
FontNamesTest.cpp
FontObjTest.cpp
FrontBufferedStreamTest.cpp
GeometryTest.cpp
GifTest.cpp
GLProgramsTest.cpp Reduce tree depth on iOS too 2017-05-26 20:40:22 +00:00
GpuDrawPathTest.cpp
GpuLayerCacheTest.cpp
GpuRectanizerTest.cpp
GpuSampleLocationsTest.cpp Introduce dynamic pipeline state 2017-06-07 18:26:11 +00:00
GradientTest.cpp Remove SkLinearGradient::kForce4fContext_PrivateFlag 2017-06-07 20:24:51 +00:00
GrAllocatorTest.cpp
GrContextAbandonTest.cpp
GrContextFactoryTest.cpp
GrDrawTargetTest.cpp
GrMemoryPoolTest.cpp
GrMeshTest.cpp Introduce dynamic pipeline state 2017-06-07 18:26:11 +00:00
GrPipelineDynamicStateTest.cpp Introduce dynamic pipeline state 2017-06-07 18:26:11 +00:00
GrPorterDuffTest.cpp Make GrSimpleMeshDrawOpHelper record whether coverage can be implemented as alpha 2017-06-05 16:47:45 +00:00
GrShapeTest.cpp
GrSKSLPrettyPrintTest.cpp
GrSurfaceTest.cpp Expand texturability testing to cover mip-mapped textures, and fix iOS 2017-06-02 13:12:17 +00:00
GrTextureMipMapInvalidationTest.cpp
GrTRecorderTest.cpp
HashTest.cpp
HighContrastFilterTest.cpp
HSVRoundTripTest.cpp
ICCTest.cpp
image-bitmap.cpp
ImageCacheTest.cpp
ImageFilterCacheTest.cpp Make instantiate return a Boolean 2017-06-05 14:03:10 +00:00
ImageFilterTest.cpp
ImageFrom565Bitmap.cpp
ImageGeneratorTest.cpp Draw time color xform API for Android 2017-06-08 19:07:54 +00:00
ImageIsOpaqueTest.cpp
ImageNewShaderTest.cpp
ImageStorageTest.cpp Revise system for checking for uninstantiated proxies 2017-05-29 17:04:51 +00:00
ImageTest.cpp Revert "Revert "Revert "DeferredTextureImageData low-bit-depth/dithering support""" 2017-06-08 14:02:20 +00:00
IndexedPngOverflowTest.cpp
InfRectTest.cpp
InsetConvexPolyTest.cpp
InterpolatorTest.cpp
IntTextureTest.cpp
InvalidIndexedPngTest.cpp
IsClosedSingleContourTest.cpp
LayerDrawLooperTest.cpp
LayerRasterizerTest.cpp
LListTest.cpp
LRUCacheTest.cpp
MallocPixelRefTest.cpp
MaskCacheTest.cpp
MathTest.cpp
Matrix44Test.cpp
MatrixClipCollapseTest.cpp
MatrixTest.cpp
MD5Test.cpp
MemoryTest.cpp
MemsetTest.cpp
MessageBusTest.cpp
MetaDataTest.cpp
MipMapTest.cpp
OnceTest.cpp
OnFlushCallbackTest.cpp Fix glDrawRangeElements 2017-05-30 16:02:36 +00:00
OSPathTest.cpp
OverAlignedTest.cpp
PackBitsTest.cpp
PackedConfigsTextureTest.cpp
PaintBreakTextTest.cpp
PaintImageFilterTest.cpp
PaintTest.cpp
ParametricStageTest.cpp update SkRasterPipeline::run() to also take y 2017-06-01 17:05:13 +00:00
ParsePathTest.cpp
PathCoverageTest.cpp
PathMeasureTest.cpp
PathOpsAngleIdeas.cpp SkSTArenaAlloc 2017-05-24 19:20:45 +00:00
PathOpsAngleTest.cpp SkSTArenaAlloc 2017-05-24 19:20:45 +00:00
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
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
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
PathTest.cpp
PDFDeflateWStreamTest.cpp
PDFDocumentTest.cpp
PDFGlyphsToUnicodeTest.cpp
PDFJpegEmbedTest.cpp
PDFMetadataAttributeTest.cpp
PDFOpaqueSrcModeToSrcOverTest.cpp
PDFPrimitivesTest.cpp
PictureBBHTest.cpp
PictureShaderTest.cpp
PictureTest.cpp
PipeTest.cpp
PixelRefTest.cpp
Point3Test.cpp
PointTest.cpp
PremulAlphaRoundTripTest.cpp
PrimitiveProcessorTest.cpp Add support for instanced draws 2017-05-31 20:40:20 +00:00
ProcessorTest.cpp Omnibus: Push instantiation of GrTextures later (post TextureSampler) 2017-06-02 11:46:40 +00:00
ProxyConversionTest.cpp
ProxyRefTest.cpp Disable deferred proxies for M60 branch 2017-05-31 23:12:39 +00:00
ProxyTest.cpp sk_sp-ify GrResourceProvider some more 2017-06-05 18:07:05 +00:00
QuickRejectTest.cpp
RandomTest.cpp
Reader32Test.cpp
ReadPixelsTest.cpp
ReadWriteAlphaTest.cpp
RecordDrawTest.cpp
RecorderTest.cpp
RecordingXfermodeTest.cpp
RecordOptsTest.cpp
RecordPatternTest.cpp
RecordTest.cpp
RecordTestUtils.h
RectangleTextureTest.cpp
RectTest.cpp
RefCntTest.cpp
RefDictTest.cpp
RegionTest.cpp
RenderTargetContextTest.cpp
ResourceCacheTest.cpp Expand texturability testing to cover mip-mapped textures, and fix iOS 2017-06-02 13:12:17 +00:00
RoundRectTest.cpp
RRectInPathTest.cpp move SkPathRef.h into private 2017-06-07 15:24:46 +00:00
RTreeTest.cpp
ScalarTest.cpp
ScaleToSidesTest.cpp
SerializationTest.cpp remove unused xfermode methods 2017-06-08 03:57:48 +00:00
ShaderOpacityTest.cpp
ShaderTest.cpp
ShadowUtilsTest.cpp
SizeTest.cpp
Sk4x4fTest.cpp
SkBase64Test.cpp
SkBlend_optsTest.cpp
skbug5221.cpp
skbug6389.cpp
SkColor4fTest.cpp
SkDOMTest.cpp
SkFixed15Test.cpp
skia_test.cpp
SkImageTest.cpp
SkLinearBitmapPipelineTest.cpp
SkLiteDLTest.cpp
SkNxTest.cpp
SkPEGTest.cpp
SkpSkGrTest.cpp
SkRasterPipelineTest.cpp start on SkJumper lowp mode 2017-06-04 22:50:14 +00:00
SkResourceCacheTest.cpp
SkSharedMutexTest.cpp
SkSLErrorTest.cpp fix incorrect variable not assigned error in skslc 2017-05-31 19:04:56 +00:00
SkSLGLSLTest.cpp Re-land "Fixed an issue with sksl variable declarations" 2017-06-02 15:11:19 +00:00
SkSLMemoryLayoutTest.cpp
SkSLSPIRVTest.cpp
SortTest.cpp
SpecialImageTest.cpp
SpecialSurfaceTest.cpp
SrcOverTest.cpp
SRGBMipMapTest.cpp
SRGBReadWritePixelsTest.cpp
SRGBTest.cpp update SkRasterPipeline::run() to also take y 2017-06-01 17:05:13 +00:00
StreamBufferTest.cpp
StreamTest.cpp
StringTest.cpp
StrokerTest.cpp
StrokeTest.cpp
SubsetPath.cpp
SubsetPath.h
SurfaceTest.cpp Disable F16-nullptr sources 2017-06-08 14:05:39 +00:00
SVGDeviceTest.cpp
SwizzlerTest.cpp
TArrayTest.cpp
TDPQueueTest.cpp Add method to GrContext to purge unlocked resources. 2017-05-26 18:14:33 +00:00
TemplatesTest.cpp
TessellatingPathRendererTests.cpp GrTessellator: fix intersection above the first vertex. 2017-06-08 20:07:04 +00:00
Test.cpp
Test.h
TestConfigParsing.cpp
TestTest.cpp
TestUtils.cpp
TestUtils.h
TextBlobCacheTest.cpp
TextBlobTest.cpp
Time.cpp
TLSTest.cpp
TopoSortTest.cpp
TraceMemoryDumpTest.cpp
TracingTest.cpp
TypefaceTest.cpp
UnicodeTest.cpp
UtilsTest.cpp
VerticesTest.cpp
VkClearTests.cpp
VkHeapTests.cpp
VkUploadPixelsTests.cpp Remove kZeroCopy_GrSurfaceFlag 2017-05-22 18:50:58 +00:00
VkWrapTests.cpp
WindowRectanglesTest.cpp
WritePixelsTest.cpp
Writer32Test.cpp
YUVCacheTest.cpp
YUVTest.cpp