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

Unified Diff: include/gpu/GrContext.h

Issue 680413005: Don't allow renderTarget==NULL to GrContext::clear() and friends. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comment Created 6 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
« no previous file with comments | « no previous file | src/effects/SkAlphaThresholdFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 001ba880270f77b1dacbd88fd2e622afe0d336c3..d4c22349d1405f326660e80162c86bff2f27b277 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -434,11 +434,9 @@ public:
* @param color the color to clear to.
* @param canIgnoreRect allows partial clears to be converted to whole
* clears on platforms for which that is cheap
- * @param target if non-NULL, the render target to clear otherwise clear
- * the current render target
+ * @param target The render target to clear.
*/
- void clear(const SkIRect* rect, GrColor color, bool canIgnoreRect,
- GrRenderTarget* target = NULL);
+ void clear(const SkIRect* rect, GrColor color, bool canIgnoreRect, GrRenderTarget* target);
/**
* Draw everywhere (respecting the clip) with the paint.
@@ -586,7 +584,7 @@ public:
/**
* Reads a rectangle of pixels from a render target.
- * @param target the render target to read from. NULL means the current render target.
+ * @param target the render target to read from.
* @param left left edge of the rectangle to read (inclusive)
* @param top top edge of the rectangle to read (inclusive)
* @param width width of rectangle to read in pixels.
« no previous file with comments | « no previous file | src/effects/SkAlphaThresholdFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698