From 4150eea6c49ecec882a8d3e1c61d6a25fcd1e905 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Wed, 7 Feb 2018 17:08:21 -0500 Subject: Move control of explicit GPU resource allocation to GrContextOptions Change-Id: Ic284acc79bab5936f0007d5ae5fb1e7a9929e2af Reviewed-on: https://skia-review.googlesource.com/104880 Commit-Queue: Robert Phillips Reviewed-by: Brian Salomon Reviewed-by: Greg Daniel --- include/gpu/GrContextOptions.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/gpu/GrContextOptions.h') diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h index 492a2d9b26..0cf4553ac9 100644 --- a/include/gpu/GrContextOptions.h +++ b/include/gpu/GrContextOptions.h @@ -140,6 +140,19 @@ struct GrContextOptions { */ Enable fUseDrawInsteadOfGLClear = Enable::kDefault; + /** + * Allow Ganesh to explicitly allocate resources at flush time rather than incrementally while + * drawing. This will eventually just be the way it is but, for now, it is optional. + */ + bool fExplicitlyAllocateGPUResources = false; + + /** + * Allow Ganesh to sort the opLists prior to allocating resources. This is an optional + * behavior that is only relevant when 'fExplicitlyAllocateGPUResources' is enabled. + * Eventually this will just be what is done and will not be optional. + */ + bool fSortRenderTargets = false; + /** * Disables correctness workarounds that are enabled for particular GPUs, OSes, or drivers. * This does not affect code path choices that are made for perfomance reasons nor does it -- cgit v1.2.3