OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #include "SkNWayCanvas.h" | 7 #include "SkNWayCanvas.h" |
8 | 8 |
9 SkNWayCanvas::SkNWayCanvas(int width, int height) | 9 SkNWayCanvas::SkNWayCanvas(int width, int height) |
10 : INHERITED(width, height) {} | 10 : INHERITED(width, height) {} |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 93 } |
94 | 94 |
95 void SkNWayCanvas::didSetMatrix(const SkMatrix& matrix) { | 95 void SkNWayCanvas::didSetMatrix(const SkMatrix& matrix) { |
96 Iter iter(fList); | 96 Iter iter(fList); |
97 while (iter.next()) { | 97 while (iter.next()) { |
98 iter->setMatrix(matrix); | 98 iter->setMatrix(matrix); |
99 } | 99 } |
100 this->INHERITED::didSetMatrix(matrix); | 100 this->INHERITED::didSetMatrix(matrix); |
101 } | 101 } |
102 | 102 |
103 void SkNWayCanvas::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle
edgeStyle) { | 103 void SkNWayCanvas::onClipRect(const SkRect& rect, ClipOp op, ClipEdgeStyle edgeS
tyle) { |
104 Iter iter(fList); | 104 Iter iter(fList); |
105 while (iter.next()) { | 105 while (iter.next()) { |
106 iter->clipRect(rect, op, kSoft_ClipEdgeStyle == edgeStyle); | 106 iter->clipRect(rect, op, kSoft_ClipEdgeStyle == edgeStyle); |
107 } | 107 } |
108 this->INHERITED::onClipRect(rect, op, edgeStyle); | 108 this->INHERITED::onClipRect(rect, op, edgeStyle); |
109 } | 109 } |
110 | 110 |
111 void SkNWayCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeSt
yle edgeStyle) { | 111 void SkNWayCanvas::onClipRRect(const SkRRect& rrect, ClipOp op, ClipEdgeStyle ed
geStyle) { |
112 Iter iter(fList); | 112 Iter iter(fList); |
113 while (iter.next()) { | 113 while (iter.next()) { |
114 iter->clipRRect(rrect, op, kSoft_ClipEdgeStyle == edgeStyle); | 114 iter->clipRRect(rrect, op, kSoft_ClipEdgeStyle == edgeStyle); |
115 } | 115 } |
116 this->INHERITED::onClipRRect(rrect, op, edgeStyle); | 116 this->INHERITED::onClipRRect(rrect, op, edgeStyle); |
117 } | 117 } |
118 | 118 |
119 void SkNWayCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle
edgeStyle) { | 119 void SkNWayCanvas::onClipPath(const SkPath& path, ClipOp op, ClipEdgeStyle edgeS
tyle) { |
120 Iter iter(fList); | 120 Iter iter(fList); |
121 while (iter.next()) { | 121 while (iter.next()) { |
122 iter->clipPath(path, op, kSoft_ClipEdgeStyle == edgeStyle); | 122 iter->clipPath(path, op, kSoft_ClipEdgeStyle == edgeStyle); |
123 } | 123 } |
124 this->INHERITED::onClipPath(path, op, edgeStyle); | 124 this->INHERITED::onClipPath(path, op, edgeStyle); |
125 } | 125 } |
126 | 126 |
127 void SkNWayCanvas::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 127 void SkNWayCanvas::onClipRegion(const SkRegion& deviceRgn, ClipOp op) { |
128 Iter iter(fList); | 128 Iter iter(fList); |
129 while (iter.next()) { | 129 while (iter.next()) { |
130 iter->clipRegion(deviceRgn, op); | 130 iter->clipRegion(deviceRgn, op); |
131 } | 131 } |
132 this->INHERITED::onClipRegion(deviceRgn, op); | 132 this->INHERITED::onClipRegion(deviceRgn, op); |
133 } | 133 } |
134 | 134 |
135 void SkNWayCanvas::onDrawPaint(const SkPaint& paint) { | 135 void SkNWayCanvas::onDrawPaint(const SkPaint& paint) { |
136 Iter iter(fList); | 136 Iter iter(fList); |
137 while (iter.next()) { | 137 while (iter.next()) { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 316 |
317 #ifdef SK_SUPPORT_LEGACY_DRAWFILTER | 317 #ifdef SK_SUPPORT_LEGACY_DRAWFILTER |
318 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { | 318 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { |
319 Iter iter(fList); | 319 Iter iter(fList); |
320 while (iter.next()) { | 320 while (iter.next()) { |
321 iter->setDrawFilter(filter); | 321 iter->setDrawFilter(filter); |
322 } | 322 } |
323 return this->INHERITED::setDrawFilter(filter); | 323 return this->INHERITED::setDrawFilter(filter); |
324 } | 324 } |
325 #endif | 325 #endif |
OLD | NEW |