468dfa72eb
Paths are cached as tessellated triangle meshes in vertex buffers on the GPU. Stroked paths are not (yet) cached. Paths containing no curved segments (linear paths) are reused at all scales. Paths containing curved segments are reused within a scale tolerance threshold. In order to invalidate the cache when an SkPath is changed or deleted, this required implementing genID change notification in SkPath. This is modelled almost exactly on SkPixelRef::GenIDChangeListener. However, It does not currently implement the check for unique genIDs, so notifiers will fire when the first instance of an SkPathRef using a given genID is destroyed. Another caveat is that you cannot successfully add a change notifier to an empty path, since it uses the "canonical" empty path which is never modified or destroyed. For this reason, we prevent adding listeners to it. BUG=skia:4121,skia:4122, 497403 DOCS_PREVIEW= https://skia.org/?cl=1114353004 Review URL: https://codereview.chromium.org/1114353004 |
||
---|---|---|
.. | ||
effects | ||
gl | ||
GrBlend.h | ||
GrCaps.h | ||
GrClip.h | ||
GrColor.h | ||
GrConfig.h | ||
GrContext.h | ||
GrContextOptions.h | ||
GrCoordTransform.h | ||
GrDrawContext.h | ||
GrFragmentProcessor.h | ||
GrGpuResource.h | ||
GrGpuResourceRef.h | ||
GrInvariantOutput.h | ||
GrPaint.h | ||
GrPathRendererChain.h | ||
GrProcessor.h | ||
GrProcessorDataManager.h | ||
GrProcessorUnitTest.h | ||
GrProgramElement.h | ||
GrRect.h | ||
GrRenderTarget.h | ||
GrResourceKey.h | ||
GrShaderVar.h | ||
GrStagedProcessor.h | ||
GrSurface.h | ||
GrTestUtils.h | ||
GrTexture.h | ||
GrTextureAccess.h | ||
GrTextureProvider.h | ||
GrTypes.h | ||
GrTypesPriv.h | ||
GrXferProcessor.h | ||
SkGr.h | ||
SkGrPixelRef.h | ||
SkGrTexturePixelRef.h |