diff options
author | 2015-12-03 12:58:06 -0800 | |
---|---|---|
committer | 2015-12-03 12:58:06 -0800 | |
commit | 6dea83f244cfdea52901eef6b31cee60b07a8ea0 (patch) | |
tree | 2fde780eafe3efe1981fd8ede81d0d2c6ffe5dd3 /src/gpu/GrDrawTarget.h | |
parent | 6f2753deee7b8cd03224e3df91dfea21bbeb9f7f (diff) |
Add option to draw wireframe batch bounds
Committed: https://skia.googlesource.com/skia/+/26489ef21ff5df33b8cb5943fddfd4604e203960
Review URL: https://codereview.chromium.org/1494473005
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index 7b0159e5d5..dc38b5d6d8 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -45,8 +45,9 @@ class GrDrawTarget final : public SkRefCnt { public: /** Options for GrDrawTarget behavior. */ struct Options { - Options () : fClipBatchToBounds(false) {} + Options () : fClipBatchToBounds(false), fDrawBatchBounds(false) {} bool fClipBatchToBounds; + bool fDrawBatchBounds; }; GrDrawTarget(GrRenderTarget*, GrGpu*, GrResourceProvider*, const Options&); @@ -319,6 +320,8 @@ private: SkTDArray<GrDrawTarget*> fDependencies; GrRenderTarget* fRenderTarget; + bool fDrawBatchBounds; + typedef SkRefCnt INHERITED; }; |