Index: src/gpu/GrDrawTarget.h |
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h |
index f7b5fe89217f9ccc864300fe1f2da44c877ca962..7c319ded9e90b1c05173024ba485940bca62ce0c 100644 |
--- a/src/gpu/GrDrawTarget.h |
+++ b/src/gpu/GrDrawTarget.h |
@@ -438,6 +438,12 @@ public: |
GrRenderTarget* renderTarget = NULL) = 0; |
/** |
+ * Discards the contents render target. NULL indicates that the current render target should |
+ * be discarded. |
+ **/ |
+ virtual void discard(GrRenderTarget* = NULL) = 0; |
+ |
+ /** |
* Called at start and end of gpu trace marking |
* GR_CREATE_GPU_TRACE_MARKER(marker_str, target) will automatically call these at the start |
* and end of a code block respectively |