diff options
author | Brian Salomon <bsalomon@google.com> | 2016-12-21 11:14:46 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-12-21 16:45:40 +0000 |
commit | 09d994ecb30de2e62a31af2c16307af31fe0e0b3 (patch) | |
tree | cc6a7b93803eb79c4061f400fc71025175e07674 /dm | |
parent | d5c5ed556c40f442eec96e071727de1cb07faf58 (diff) |
Misc batch->op cleanup Part 1 of 2
Change-Id: I80f951976558a284e55386e0a368f08bd835d8ca
Reviewed-on: https://skia-review.googlesource.com/6359
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'dm')
-rw-r--r-- | dm/DMSrcSink.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp index 50b916395d..594a4b7182 100644 --- a/dm/DMSrcSink.cpp +++ b/dm/DMSrcSink.cpp @@ -1222,17 +1222,16 @@ GPUSink::GPUSink(GrContextFactory::ContextType ct, , fThreaded(threaded) {} DEFINE_bool(imm, false, "Run gpu configs in immediate mode."); -DEFINE_bool(batchClip, false, "Clip each GrOp to its device bounds for testing."); -DEFINE_int32(batchLookback, -1, "Maximum GrOp lookback for combining, negative means default."); -DEFINE_int32(batchLookahead, -1, "Maximum GrOp lookahead for combining, negative means " - "default."); +DEFINE_bool(drawOpClip, false, "Clip each GrDrawOp to its device bounds for testing."); +DEFINE_int32(opLookback, -1, "Maximum GrOp lookback for combining, negative means default."); +DEFINE_int32(opLookahead, -1, "Maximum GrOp lookahead for combining, negative means default."); Error GPUSink::draw(const Src& src, SkBitmap* dst, SkWStream*, SkString* log) const { GrContextOptions grOptions; grOptions.fImmediateMode = FLAGS_imm; - grOptions.fClipBatchToBounds = FLAGS_batchClip; - grOptions.fMaxBatchLookback = FLAGS_batchLookback; - grOptions.fMaxBatchLookahead = FLAGS_batchLookahead; + grOptions.fClipDrawOpsToBounds = FLAGS_drawOpClip; + grOptions.fMaxOpCombineLookback = FLAGS_opLookback; + grOptions.fMaxOpCombineLookahead = FLAGS_opLookahead; src.modifyGrContextOptions(&grOptions); |