aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkCanvas.h
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2015-12-11 14:08:58 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-11 14:08:59 -0800
commita1bb8e02fe7956b2f85a0afadbca5f607a804403 (patch)
tree2f88af63800c221ba3711f9eb7f48779cc458be9 /include/core/SkCanvas.h
parent52e2581700b719aad317605160a2cef45d3db68b (diff)
In SkPixmap.cpp, change SkAlphaMul to SkMulDiv255.
Add a test that we get the same color back after calling SkBitmap::eraseColor, modulo rounding. Also update some incorrect docs. BUG=skia:4297 Review URL: https://codereview.chromium.org/1521673002
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r--include/core/SkCanvas.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 33d565c0a1..14f0aa5250 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -613,8 +613,8 @@ public:
* This makes the contents of the canvas undefined. Subsequent calls that
* require reading the canvas contents will produce undefined results. Examples
* include blending and readPixels. The actual implementation is backend-
- * dependent and one legal implementation is to do nothing. Like clear(), this
- * ignores the clip.
+ * dependent and one legal implementation is to do nothing. This method
+ * ignores the current clip.
*
* This function should only be called if the caller intends to subsequently
* draw to the canvas. The canvas may do real work at discard() time in order
@@ -624,7 +624,7 @@ public:
void discard() { this->onDiscard(); }
/**
- * Fill the entire canvas' bitmap (restricted to the current clip) with the
+ * Fill the entire canvas (restricted to the current clip) with the
* specified paint.
* @param paint The paint used to fill the canvas
*/