| 188 | } |
| 189 | |
| 190 | void Layer::drawForeground(Scalar width, Scalar height) { |
| 191 | DrawingContext drawingContext(width, height); |
| 192 | |
| 193 | if (_borderWidth != 0) { |
| 194 | Paint paint; |
| 195 | paint.setStroke(true); |
| 196 | paint.setColor(_borderColor); |
| 197 | paint.setStrokeWidth(_borderWidth); |
| 198 | paint.setAntiAlias(true); |
| 199 | |
| 200 | drawingContext.drawPaint(paint, _borderRadius, _lazyPath); |
| 201 | } |
| 202 | |
| 203 | _cachedForeground = drawingContext.finish(); |
| 204 | } |
| 205 | |
| 206 | bool Layer::hasOverlappingRendering() const { |
| 207 | return getChildrenSize() > 0; |
nothing calls this directly
no test coverage detected