aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2018-07-12 08:40:13 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-12 12:45:58 +0000
commit939fd6ce9c49f8b3552e8334b7ac72dde420a352 (patch)
treef20d2d26f294314fda67a4b3e37850eaedfd93f3 /docs
parentf666cbc10b414a73b56cad1360741751aca9429f (diff)
remove more references to draw filter
TBR=bungeman@google.com NOTRY=true Docs-Preview: https://skia.org/?cl=140798 Bug: skia:6818 Change-Id: Ia741238f65b55cf20b6f4a813a573e84d29a2dfd Reviewed-on: https://skia-review.googlesource.com/140798 Commit-Queue: Cary Clark <caryclark@skia.org> Reviewed-by: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/SkCanvas_Reference.bmh43
1 files changed, 17 insertions, 26 deletions
diff --git a/docs/SkCanvas_Reference.bmh b/docs/SkCanvas_Reference.bmh
index 91de06762c..e91aee56da 100644
--- a/docs/SkCanvas_Reference.bmh
+++ b/docs/SkCanvas_Reference.bmh
@@ -1265,10 +1265,9 @@ to implement windows and views. The initial state has an identity matrix and and
an infinite clip. Even with a wide-open clip, drawing is constrained by the
bounds of the Canvas Surface or Device.
-Canvas savable state consists of Clip, Matrix, and Draw_Filter.
+Canvas savable state consists of Clip and Matrix.
Clip describes the area that may be drawn to.
Matrix transforms the geometry.
-Draw_Filter (deprecated on most platforms) modifies the paint before drawing.
save(), saveLayer, saveLayerPreserveLCDTextRequests, and saveLayerAlpha
save state and return the depth of the stack.
@@ -1332,9 +1331,9 @@ void draw(SkCanvas* canvas) {
#In State_Stack
#Line # saves Clip and Matrix on stack ##
-Saves Matrix, Clip, and Draw_Filter (Draw_Filter deprecated on most platforms).
-Calling restore() discards changes to Matrix, Clip, and Draw_Filter,
-restoring the Matrix, Clip, and Draw_Filter to their state when save() was called.
+Saves Matrix and Clip.
+Calling restore() discards changes to Matrix and Clip,
+restoring the Matrix and Clip to their state when save() was called.
Matrix may be changed by translate(), scale(), rotate(), skew(), concat(), setMatrix,
and resetMatrix. Clip may be changed by clipRect, clipRRect, clipPath, clipRegion.
@@ -1376,7 +1375,7 @@ void draw(SkCanvas* canvas) {
#In State_Stack
#Line # restores changes to Clip and Matrix, pops save stack ##
-Removes changes to Matrix, Clip, and Draw_Filter since Canvas state was
+Removes changes to Matrix and Clip since Canvas state was
last saved. The state is removed from the stack.
Does nothing if the stack is empty.
@@ -1400,7 +1399,7 @@ void draw(SkCanvas* canvas) {
#In State_Stack
#Line # returns depth of stack containing Clip and Matrix ##
-Returns the number of saved states, each containing: Matrix, Clip, and Draw_Filter.
+Returns the number of saved states, each containing: Matrix and Clip.
Equals the number of save() calls less the number of restore() calls plus one.
The save count of a new canvas is one.
@@ -1432,7 +1431,7 @@ depth = 1
#In State_Stack
#Line # restores changes to Clip and Matrix to given depth ##
-Restores state to Matrix, Clip, and Draw_Filter values when save(), saveLayer,
+Restores state to Matrix and Clip values when save(), saveLayer,
saveLayerPreserveLCDTextRequests, or saveLayerAlpha returned saveCount.
Does nothing if saveCount is greater than state stack count.
@@ -1485,10 +1484,8 @@ Color_Alpha, Color_Filter, Image_Filter, and Blend_Mode.
#In Layer
#Line # saves Clip and Matrix on stack; creates Layer ##
-Saves Matrix, Clip, and Draw_Filter (Draw_Filter deprecated on most platforms),
-and allocates a Bitmap for subsequent drawing.
-Calling restore() discards changes to Matrix, Clip, and Draw_Filter,
-and draws the Bitmap.
+Saves Matrix and Clip, and allocates a Bitmap for subsequent drawing.
+Calling restore() discards changes to Matrix and Clip, and draws the Bitmap.
Matrix may be changed by translate(), scale(), rotate(), skew(), concat(),
setMatrix, and resetMatrix. Clip may be changed by clipRect, clipRRect,
@@ -1539,10 +1536,8 @@ void draw(SkCanvas* canvas) {
#Method int saveLayer(const SkRect& bounds, const SkPaint* paint)
#In Layer
-Saves Matrix, Clip, and Draw_Filter (Draw_Filter deprecated on most platforms),
-and allocates a Bitmap for subsequent drawing.
-Calling restore() discards changes to Matrix, Clip, and Draw_Filter,
-and draws the Bitmap.
+Saves Matrix and Clip, and allocates a Bitmap for subsequent drawing.
+Calling restore() discards changes to Matrix and Clip, and draws the Bitmap.
Matrix may be changed by translate(), scale(), rotate(), skew(), concat(),
setMatrix, and resetMatrix. Clip may be changed by clipRect, clipRRect,
@@ -1595,12 +1590,10 @@ void draw(SkCanvas* canvas) {
#In Layer
#Line # saves Clip and Matrix on stack; creates Layer for LCD text ##
-Saves Matrix, Clip, and Draw_Filter (Draw_Filter deprecated on most platforms),
-and allocates a Bitmap for subsequent drawing.
+Saves Matrix and Clip, and allocates a Bitmap for subsequent drawing.
LCD_Text is preserved when the Layer is drawn to the prior Layer.
-Calling restore() discards changes to Matrix, Clip, and Draw_Filter,
-and draws Layer.
+Calling restore() discards changes to Matrix and Clip, and draws Layer.
Matrix may be changed by translate(), scale(), rotate(), skew(), concat(),
setMatrix, and resetMatrix. Clip may be changed by clipRect, clipRRect,
@@ -1654,10 +1647,9 @@ incorrect blending.
#In Layer
#Line # saves Clip and Matrix on stack; creates Layer; sets opacity ##
-Saves Matrix, Clip, and Draw_Filter (Draw_Filter deprecated on most platforms),
-and allocates Bitmap for subsequent drawing.
+Saves Matrix and Clip, and allocates Bitmap for subsequent drawing.
-Calling restore() discards changes to Matrix, Clip, and Draw_Filter,
+Calling restore() discards changes to Matrix and Clip,
and blends Layer with alpha opacity onto prior Layer.
Matrix may be changed by translate(), scale(), rotate(), skew(), concat(),
@@ -1976,10 +1968,9 @@ Implementation is not complete; has no effect if Device is GPU-backed.
#Method int saveLayer(const SaveLayerRec& layerRec)
#In Layer
-Saves Matrix, Clip, and Draw_Filter (Draw_Filter deprecated on most platforms),
-and allocates Bitmap for subsequent drawing.
+Saves Matrix and Clip, and allocates Bitmap for subsequent drawing.
-Calling restore() discards changes to Matrix, Clip, and Draw_Filter,
+Calling restore() discards changes to Matrix and Clip,
and blends Bitmap with Color_Alpha opacity onto the prior Layer.
Matrix may be changed by translate(), scale(), rotate(), skew(), concat(),