skia2/samplecode
Brian Salomon 588cec7f91 Reenable GrOp chaining.
GrRenderTargetOpList maintains an array of op chains. When it receives a
new op it tries to add it to an existing chain, working backwards from
the end of the current array. If the op can be added to a chain it
additionally tries to merge the new op with ops already in the chain
before adding it to the tail of the chain.

In forward combining it tries to concatenate chains. If chains can
concatenate it also attempts to merge ops between the two chains.

Now op chaining results reported by Op subclasses must be transitive.
Moreover, if op A is able to merge with B then it must be the case that
any op that can chain with A will either merge or chain with any op that
can chain to B.

Bug: skia:8491

Change-Id: Ib6a2a669acd4257134a37d271289b8b3f247cd3f
Reviewed-on: https://skia-review.googlesource.com/c/170351
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2018-11-14 19:20:59 +00:00
..
DecodeFile.h use unique_ptr for codec factories 2017-07-25 15:35:23 +00:00
PerlinPatch.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
Sample2PtRadial.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
Sample.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
Sample.h Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleAAClip.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleAAGeometry.cpp hide the SkPaint::Align enum entirely 2018-10-30 17:26:47 +00:00
SampleAARectModes.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleAARects.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleAll.cpp override getTypeName() instead of using table 2018-10-19 18:07:04 +00:00
SampleAndroidShadows.cpp Simplify perspective shadows to match future MD specs. 2018-08-31 18:15:19 +00:00
SampleAnimatedImage.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleAnimatedText.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleAnimBlur.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleArc.cpp hide the SkPaint::Align enum entirely 2018-10-30 17:26:47 +00:00
SampleAtlas.cpp hide the SkPaint::Align enum entirely 2018-10-30 17:26:47 +00:00
SampleBigBlur.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleBigGradient.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleBitmapRect.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleBlur.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleCamera.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleCCPRGeometry.cpp Reenable GrOp chaining. 2018-11-14 19:20:59 +00:00
SampleChart.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleChineseFling.cpp use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
SampleCircle.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleClamp.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleClip.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleClipDrawMatch.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleClock.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleColorFilter.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleComplexClip.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleConcavePaths.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleCowboy.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleCusp.cpp add circles to stroked cubics with cusps 2018-08-31 19:55:44 +00:00
SampleDash.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleDegenerateTwoPtRadials.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleEffects.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleEmboss.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleFatBits.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleFillType.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleFilter2.cpp hide the SkPaint::Align enum entirely 2018-10-30 17:26:47 +00:00
SampleFilterFuzz.cpp Revert[4] "hide nested hinting enum" 2018-11-08 16:33:04 +00:00
SampleFilterQuality.cpp Revert "makeSurface defaults to raster" 2018-09-05 18:41:45 +00:00
SampleFlutterAnimate.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleFontCache.cpp use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
SampleFontScalerTest.cpp Remove a largue quantity of 4444 and/or dithering code 2018-09-21 00:50:06 +00:00
SampleFuzz.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleGlyphTransform.cpp Beautify GlyphTransform sample. 2018-08-16 14:17:46 +00:00
SampleGradients.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleHairCurves.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleHairline.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleHairModes.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleHT.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleIdentityScale.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleLayerMask.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleLayers.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleLCD.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleLighting.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleLines.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleLitAtlas.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleLua.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleManyRects.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleMeasure.cpp remove empty devKern from SkPaint 2018-11-04 14:44:24 +00:00
SampleMegaStroke.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleNima.cpp Refactor Nima code 2018-10-30 19:32:52 +00:00
SamplePatch.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SamplePath.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SamplePathClip.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SamplePathEffects.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SamplePathFill.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SamplePathFuzz.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SamplePathOverstroke.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SamplePathText.cpp Reland "Move remove ptr args to MakeRecAndEffects" 2018-11-09 20:01:42 +00:00
SamplePdfFileViewer.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SamplePoints.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SamplePolyToPoly.cpp use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
SampleQuadStroker.cpp hide the SkPaint::Align enum entirely 2018-10-30 17:26:47 +00:00
SampleRectanizer.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleRegion.cpp use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
SampleRepeatTile.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleShaders.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleShadowColor.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleShadowReference.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleShadowUtils.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleShip.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleSlides.cpp delete textonpath code -- not used anywhere 2018-10-01 16:52:32 +00:00
SampleStringArt.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleStrokePath.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleStrokeRect.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleSubpixelTranslate.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleSVGFile.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleText.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleTextAlpha.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleTextBox.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleTextEffects.cpp rename some flattenable routines 2018-10-20 14:08:32 +00:00
SampleTextureDomain.cpp Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
SampleTiling.cpp hide the SkPaint::Align enum entirely 2018-10-30 17:26:47 +00:00
SampleUnpremul.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleVertices.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleWritePixels.cpp IWYU: SkUtils.h 2018-08-21 16:05:44 +00:00
SampleXfer.cpp hide the SkPaint::Align enum entirely 2018-10-30 17:26:47 +00:00
SampleXfermodesBlur.cpp hide the SkPaint::Align enum entirely 2018-10-30 17:26:47 +00:00
vertexdump.cpp Style bikeshed - remove extraneous whitespace 2016-03-29 09:03:53 -07:00