return fBlitter->justAnOpaqueColor(value);
}
+void SkRectClipCheckBlitter::blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) {
+ SkASSERT(fClipRect.contains(SkIRect::MakeXYWH(x, y, 2, 1)));
+ fBlitter->blitAntiH2(x, y, a0, a1);
+}
+
+void SkRectClipCheckBlitter::blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) {
+ SkASSERT(fClipRect.contains(SkIRect::MakeXYWH(x, y, 1, 2)));
+ fBlitter->blitAntiV2(x, y, a0, a1);
+}
+
#endif
SkAlpha leftAlpha, SkAlpha rightAlpha) override;
void blitMask(const SkMask&, const SkIRect& clip) override;
const SkPixmap* justAnOpaqueColor(uint32_t* value) override;
+ void blitAntiH2(int x, int y, U8CPU a0, U8CPU a1) override;
+ void blitAntiV2(int x, int y, U8CPU a0, U8CPU a1) override;
int requestRowsPreserved() const override {
return fBlitter->requestRowsPreserved();
SkRectClipBlitter fRectBlitter;
SkRgnClipBlitter fRgnBlitter;
#ifdef SK_DEBUG
- // SkRectClipCheckBlitter fRectClipCheckBlitter;
+ SkRectClipCheckBlitter fRectClipCheckBlitter;
#endif
SkBlitter* fBlitter;
const SkIRect* fClipRect;
if (clip->isRect()) {
if (fClipRect->contains(ir)) {
#ifdef SK_DEBUG
- // fRectClipCheckBlitter.init(blitter, *fClipRect);
- // blitter = &fRectClipCheckBlitter;
+ fRectClipCheckBlitter.init(blitter, *fClipRect);
+ blitter = &fRectClipCheckBlitter;
#endif
fClipRect = nullptr;
} else {
blitter = &fRectBlitter;
} else {
#ifdef SK_DEBUG
- // fRectClipCheckBlitter.init(blitter, *fClipRect);
- // blitter = &fRectClipCheckBlitter;
+ fRectClipCheckBlitter.init(blitter, *fClipRect);
+ blitter = &fRectClipCheckBlitter;
#endif
}
}