diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-12-18 14:22:34 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-19 17:26:56 +0000 |
commit | 040238bded7b932b916c84912cbaec1207aa29c0 (patch) | |
tree | c5552a22315889b06249b524bc2d1a6723651dcb /dm/DMSrcSink.cpp | |
parent | c2a4101e48467ae9d574f9b85b228aabb0722d40 (diff) |
Add a tools flag to suppress geometry shaders
Bug: skia:
Change-Id: I38736c5d49e3b281c2d23af3908575274ff97b5c
Reviewed-on: https://skia-review.googlesource.com/86282
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'dm/DMSrcSink.cpp')
-rw-r--r-- | dm/DMSrcSink.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp index d3566b6d92..f8be87f592 100644 --- a/dm/DMSrcSink.cpp +++ b/dm/DMSrcSink.cpp @@ -17,6 +17,7 @@ #include "SkColorSpaceXformCanvas.h" #include "SkColorSpace_XYZ.h" #include "SkCommonFlags.h" +#include "SkCommonFlagsGpu.h" #include "SkData.h" #include "SkDebugCanvas.h" #include "SkDeferredDisplayListRecorder.h" @@ -66,7 +67,6 @@ DEFINE_bool(multiPage, false, "For document-type backends, render the source" " into multiple pages"); DEFINE_bool(RAW_threading, true, "Allow RAW decodes to run on multiple threads?"); -DECLARE_int32(gpuThreads); using sk_gpu_test::GrContextFactory; @@ -1584,7 +1584,11 @@ GPUThreadTestingSink::GPUThreadTestingSink(GrContextFactory::ContextType ct, const GrContextOptions& grCtxOptions) : INHERITED(ct, overrides, samples, diText, colorType, alphaType, std::move(colorSpace), threaded, grCtxOptions) +#if SK_SUPPORT_GPU , fExecutor(SkExecutor::MakeFIFOThreadPool(FLAGS_gpuThreads)) { +#else + , fExecutor(nullptr) { +#endif SkASSERT(fExecutor); } |