| 139 | |
| 140 | private: |
| 141 | void drawTo(const Surface& s) const override { |
| 142 | if (s.dx() == 0 && s.dy() == 0) { |
| 143 | ClippingBufferedPixelWriter writer(s.out(), extents_, blending_mode_); |
| 144 | fn_(writer); |
| 145 | } else { |
| 146 | TransformedDisplayOutput out(s.out(), |
| 147 | Transformation().translate(s.dx(), s.dy())); |
| 148 | ClippingBufferedPixelWriter writer(out, extents_, blending_mode_); |
| 149 | fn_(writer); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | const std::function<void(ClippingBufferedPixelWriter&)>& fn_; |
| 154 | Box extents_; |
nothing calls this directly
no test coverage detected