skia2/include/gpu
kkinnunen c8b4336444 Add config options to run different GPU APIs to dm and nanobench
Add extended config specification form that can be used to run different
gpu backend with different APIs.

The configs can be specified with the form:
gpu(api=string,dit=bool,nvpr=bool,samples=int)

This replaces and removes the --gpuAPI flag.

All existing configs should still work.

Adds following documentation:

out/Debug/dm --help config

Flags:
    --config:	type: string	default: 565 8888 gpu nonrendering
        Options: 565 8888 debug gpu gpudebug gpudft gpunull msaa16 msaa4
        nonrendering null nullgpu nvprmsaa16 nvprmsaa4 pdf pdf_poppler skp svg
        xps or use extended form 'backend(option=value,...)'.

        Extended form: 'backend(option=value,...)'

        Possible backends and options:

        gpu(api=string,dit=bool,nvpr=bool,samples=int)	GPU backend
        	api	type: string	default: native.
        	    Select graphics API to use with gpu backend.
        	    Options:
        		native			Use platform default OpenGL or OpenGL ES backend.
        		gl    			Use OpenGL.
        		gles  			Use OpenGL ES.
        		debug 			Use debug OpenGL.
        		null  			Use null OpenGL.
        	dit	type: bool	default: false.
        	    Use device independent text.
        	nvpr	type: bool	default: false.
        	    Use NV_path_rendering OpenGL and OpenGL ES extension.
        	samples	type: int	default: 0.
        	    Use multisampling with N samples.

        Predefined configs:

        	gpu      	= gpu()
        	msaa4    	= gpu(samples=4)
        	msaa16   	= gpu(samples=16)
        	nvprmsaa4	= gpu(nvpr=true,samples=4)
        	nvprmsaa16	= gpu(nvpr=true,samples=16)
        	gpudft    	= gpu(dit=true)
        	gpudebug  	= gpu(api=debug)
        	gpunull   	= gpu(api=null)
        	debug     	= gpu(api=debug)
        	nullgpu   	= gpu(api=null)

BUG=skia:2992

Committed: https://skia.googlesource.com/skia/+/e13ca329fca4c28cf4e078561f591ab27b743d23
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1490113005

Review URL: https://codereview.chromium.org/1490113005
2015-12-18 03:27:32 -08:00
..
effects APIs which took colorPOI / coveragePOI pairs updated to take a GrPipelineOptimizations struct 2015-11-30 08:57:38 -08:00
gl Add config options to run different GPU APIs to dm and nanobench 2015-12-18 03:27:32 -08:00
GrBlend.h Create fragment processor for performing input color blend with child processor 2015-09-15 15:33:27 -07:00
GrCaps.h Add check for highp support in Conic effect 2015-12-11 04:59:36 -08:00
GrClip.h fix mozilla bug 2015-12-04 08:51:11 -08:00
GrColor.h Make skpaint->grpaint flow work for composing draws (verts and atlas) 2015-09-28 06:26:29 -07:00
GrConfig.h Create a define for nanobench builds to dump stats 2015-12-02 13:00:37 -08:00
GrContext.h Move texture drawing utility method to SkGpuDevice 2015-12-08 18:53:44 -08:00
GrContextOptions.h Add option to control maximum GrBatch lookback 2015-12-14 12:13:09 -08:00
GrCoordTransform.h some utils for rect and matrix 2015-03-13 06:08:28 -07:00
GrDrawContext.h Move flush logic into GrAtlasTextBlob 2015-12-10 11:22:08 -08:00
GrFragmentProcessor.h Change prealloc number of child FPs be 1 rather than 2 2015-11-19 11:04:48 -05:00
GrGpuResource.h Add onMemoryDump to GrContext 2015-09-15 14:16:10 -07:00
GrGpuResourceRef.h apply mozilla patch 2015-11-10 04:55:08 -08:00
GrInvariantOutput.h Make skpaint->grpaint flow work for composing draws (verts and atlas) 2015-09-28 06:26:29 -07:00
GrPaint.h Don't create a GXPFactory when blend is SrcOver 2015-11-23 13:20:42 -08:00
GrProcessor.h Increase the amount of debug information printed out by batches 2015-11-16 09:06:59 -08:00
GrProcessorUnitTest.h Fix GrCoverageSetOpXP unit test on mixed samples 2015-11-12 12:11:04 -08:00
GrProgramElement.h Convert child FPs from refs to pending executions when parent converts 2015-08-27 16:43:48 -07:00
GrRect.h Begin atlasing 2014-06-30 08:26:50 -07:00
GrRenderTarget.h Dependencies are now added between the drawTargets in GrPipeline 2015-10-30 10:11:30 -07:00
GrResourceKey.h Fix thread-unsafe construction of GrUniqueKey in GR_DEFINE_STATIC_UNIQUE_KEY 2015-12-17 08:15:47 -08:00
GrShaderVar.h Refactor position computation to enable device space "nudge" 2015-01-18 08:14:14 -08:00
GrSurface.h Defer flushes if kPreferNoIO is specified 2015-08-13 05:19:14 -07:00
GrTestUtils.h Implement caching of stroked paths in the tessellating path renderer. 2015-08-06 10:28:55 -07:00
GrTexture.h Move DstCoordTexture to GrXP, rename and remove the word "copy" from dstcopytexture names. 2015-05-26 09:49:05 -07:00
GrTextureAccess.h Remove image usage type enum. Use GrTextureParams instead. 2015-10-12 10:39:46 -07:00
GrTextureParams.h Remove image usage type enum. Use GrTextureParams instead. 2015-10-12 10:39:46 -07:00
GrTextureProvider.h tunnel down texture-size-constraint to imagefilters 2015-10-22 13:20:20 -07:00
GrTypes.h Set GL_PACK_ALIGNMENT before calling glReadPixels 2015-12-15 12:37:38 -08:00
GrTypesPriv.h Initial version of external_oes texture support and unit test 2015-11-22 14:51:00 -08:00
GrXferProcessor.h Create a static instances of SrcOver XferProcessor 2015-11-30 10:15:58 -08:00
SkGr.h Rewrite GrTextureMaker to disentangle bitmap case from base class and give GPU object a say in what copying needs to be done. 2015-10-20 07:58:01 -07:00
SkGrPixelRef.h remove SkInstCnt 2015-06-26 11:45:03 -07:00
SkGrTexturePixelRef.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00