42eafa4bc0
Adds a module that performs instanced rendering and starts using it for a select subset of draws on Mac GL platforms. The instance processor can currently handle rects, ovals, round rects, and double round rects. It can generalize shapes as round rects in order to improve batching. The instance processor also employs new drawing algorithms, irrespective of instanced rendering, that improve GPU-side performance (e.g. sample mask, different triangle layouts, etc.). This change only scratches the surface of instanced rendering. The majority of draws still only have one instance. Future work may include: * Passing coord transforms through the texel buffer. * Sending FP uniforms through instanced vertex attribs. * Using instanced rendering for more draws (stencil writes, drawAtlas, etc.). * Adding more shapes to the instance processor’s repertoire. * Batching draws that have mismatched scissors (analyzing draw bounds, inserting clip planes, etc.). * Bindless textures. * Uber shaders. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2066993003 Review-Url: https://codereview.chromium.org/2066993003 |
||
---|---|---|
.. | ||
effects | ||
gl | ||
vk | ||
GrBlend.h | ||
GrBuffer.h | ||
GrBufferAccess.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 | ||
GrProcessor.h | ||
GrProcessorUnitTest.h | ||
GrProgramElement.h | ||
GrRenderTarget.h | ||
GrResourceKey.h | ||
GrShaderVar.h | ||
GrSurface.h | ||
GrTestUtils.h | ||
GrTexture.h | ||
GrTextureAccess.h | ||
GrTextureParams.h | ||
GrTextureProvider.h | ||
GrTypes.h | ||
GrTypesPriv.h | ||
GrXferProcessor.h | ||
SkGr.h | ||
SkGrPixelRef.h | ||
SkGrTexturePixelRef.h |