SkLiteRecorder: don't tell SkCanvas about clips
If no one reads our clip, and we don't expect quickReject() to help, we can probably get away without maintaining a proper clip stack. This puts us at about 0.6-0.7x of previous record cost. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2227833004 Review-Url: https://codereview.chromium.org/2227833004
This commit is contained in:
parent
d5b9173fe8
commit
8369e32a05
@ -34,19 +34,15 @@ void SkLiteRecorder::didSetMatrix(const SkMatrix& matrix) { fDL->setMatrix(matri
|
||||
|
||||
void SkLiteRecorder::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle style) {
|
||||
fDL->clipRect(rect, op, style==kSoft_ClipEdgeStyle);
|
||||
SkCanvas::onClipRect(rect, op, style);
|
||||
}
|
||||
void SkLiteRecorder::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle style) {
|
||||
fDL->clipRRect(rrect, op, style==kSoft_ClipEdgeStyle);
|
||||
SkCanvas::onClipRRect(rrect, op, style);
|
||||
}
|
||||
void SkLiteRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle style) {
|
||||
fDL->clipPath(path, op, style==kSoft_ClipEdgeStyle);
|
||||
SkCanvas::onClipPath(path, op, style);
|
||||
}
|
||||
void SkLiteRecorder::onClipRegion(const SkRegion& region, SkRegion::Op op) {
|
||||
fDL->clipRegion(region, op);
|
||||
SkCanvas::onClipRegion(region, op);
|
||||
}
|
||||
|
||||
void SkLiteRecorder::onDrawPaint(const SkPaint& paint) {
|
||||
|
Loading…
Reference in New Issue
Block a user