Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: src/gpu/GrDrawTarget.h

Issue 1471083002: Add debug option to clip each GrBatch to its device bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@clipbounds
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrDrawTarget.h
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index cf3137fe7c68fc44c6a3fd9fe2b782ec098eb700..cb214c97a0fe99b2f7656e18c2535e654ffec7fa 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -43,9 +43,13 @@ class GrPathRangeDraw;
class GrDrawTarget final : public SkRefCnt {
public:
- // The context may not be fully constructed and should not be used during GrDrawTarget
- // construction.
- GrDrawTarget(GrRenderTarget* rt, GrGpu* gpu, GrResourceProvider*);
+ /** Options for GrDrawTarget behavior. */
+ struct Options {
+ Options () : fClipBatchToBounds(false) {}
+ bool fClipBatchToBounds;
+ };
+
+ GrDrawTarget(GrRenderTarget*, GrGpu*, GrResourceProvider*, const Options&);
~GrDrawTarget() override;

Powered by Google App Engine
This is Rietveld 408576698