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

Unified Diff: src/gpu/GrDrawTarget.h

Issue 2145643003: Move GrDrawTarget::clear logic into GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix typo Created 4 years, 5 months 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
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTarget.h
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index 7b268c28270697b5a097a9d5f23379bc2ff4db49..5f91baa33b6e4ffe8711d4a56881c5a254946fa4 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -106,6 +106,8 @@ public:
void drawBatch(const GrPipelineBuilder&, GrDrawContext*, const GrClip&, GrDrawBatch*);
+ void addBatch(sk_sp<GrBatch>);
+
/**
* Draws path into the stencil buffer. The fill must be either even/odd or
* winding (not inverse or hairline). It will respect the HW antialias flag
@@ -116,16 +118,6 @@ public:
const GrClip&, const SkMatrix& viewMatrix,
const GrPath*, GrPathRendering::FillType);
- /**
- * Clear the passed in drawContext. Ignores the GrPipelineBuilder and clip. Clears the whole
- * thing if rect is nullptr, otherwise just the rect. If canIgnoreRect is set then the entire
- * drawContext can be optionally cleared.
- */
- void clear(const SkIRect* rect,
- GrColor color,
- bool canIgnoreRect,
- GrDrawContext*);
-
/** Discards the contents render target. */
void discard(GrRenderTarget*);
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698