668995122f
Always call generateMetrics before generatePath so that generateMetrics can determine which glyph representation to use and if that glyph representation can be modeled as a path. Pass an allocator into generateMetrics so that it can set the path to not existing. This allows generatePath to continue to work as it used to, creating a path if any path is available. However, generateMetrics may first set the path to not existing. Update getPath and internalGetPath to use the path on the glyph if it has already been set. Update makeGlyph and internalMakeGlyph to always call generateMetrics first (which is now more like initGlyph). Update the SkGlyph::PathData to indicate that it is a dev-path and not a user-path. A user-path will have effects applied to it. A dev-path is always a resolved path which is always filled -- unless it is hairline. Update everything else for the knock on effects and to take advantage of this information. Bug: chromium:1266022 Change-Id: Id3f3cf5a534ab99f3a5779c910c1d1e191e68b1e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/478658 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Ben Wagner <bungeman@google.com> |
||
---|---|---|
.. | ||
DecodeFile.h | ||
Sample2PtRadial.cpp | ||
Sample3D.cpp | ||
Sample.cpp | ||
Sample.h | ||
SampleAARectModes.cpp | ||
SampleAARects.cpp | ||
SampleAndroidShadows.cpp | ||
SampleAnimatedImage.cpp | ||
SampleAnimatedText.cpp | ||
SampleAnimBlur.cpp | ||
SampleArc.cpp | ||
SampleAtlas.cpp | ||
SampleAudio.cpp | ||
SampleCamera.cpp | ||
SampleChart.cpp | ||
SampleChineseFling.cpp | ||
SampleCircle.cpp | ||
SampleClip.cpp | ||
SampleClock.cpp | ||
SampleComplexClip.cpp | ||
SampleCowboy.cpp | ||
SampleCusp.cpp | ||
SampleDegenerateQuads.cpp | ||
SampleDegenerateTwoPtRadials.cpp | ||
SampleEffects.cpp | ||
SampleEmboss.cpp | ||
SampleFatBits.cpp | ||
SampleFillType.cpp | ||
SampleFilterBounds.cpp | ||
SampleFitCubicToCircle.cpp | ||
SampleFlutterAnimate.cpp | ||
SampleGlyphTransform.cpp | ||
SampleGradients.cpp | ||
SampleHairCurves.cpp | ||
SampleHairModes.cpp | ||
SampleImageFilterDAG.cpp | ||
SampleLayers.cpp | ||
SampleLCD.cpp | ||
SampleManyRects.cpp | ||
SampleMaterialShadows.cpp | ||
SampleMegaStroke.cpp | ||
SampleMixer.cpp | ||
SamplePatch.cpp | ||
SamplePath.cpp | ||
SamplePathClip.cpp | ||
SamplePathEffects.cpp | ||
SamplePathOverstroke.cpp | ||
SamplePathTessellators.cpp | ||
SamplePathText.cpp | ||
SamplePolyToPoly.cpp | ||
SampleQuadStroker.cpp | ||
SampleRectanizer.cpp | ||
SampleRepeatTile.cpp | ||
SampleSG.cpp | ||
SampleShadowColor.cpp | ||
SampleShadowReference.cpp | ||
SampleShadowUtils.cpp | ||
SampleShip.cpp | ||
SampleSimpleStroker.cpp | ||
SampleSlides.cpp | ||
SampleStringArt.cpp | ||
SampleStrokePath.cpp | ||
SampleStrokeRect.cpp | ||
SampleStrokeVerb.cpp | ||
SampleSVGFile.cpp | ||
SampleTextBox.cpp | ||
SampleTextureUpload.cpp | ||
SampleThinAA.cpp | ||
SampleTiming.cpp | ||
SampleVariableWidthStroker.cpp | ||
SampleVertices.cpp | ||
SampleWritePixels.cpp | ||
SampleXfer.cpp | ||
SampleXfermodesBlur.cpp | ||
vertexdump.cpp |