Merge "onDrawBitmap* virtual are no longer called"
This commit is contained in:
@@ -925,16 +925,6 @@ void RecordingCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScala
|
||||
fDL->drawTextBlob(blob, x, y, paint);
|
||||
}
|
||||
|
||||
void RecordingCanvas::onDrawBitmap(const SkBitmap& bm, SkScalar x, SkScalar y,
|
||||
const SkPaint* paint) {
|
||||
fDL->drawImage(SkImage::MakeFromBitmap(bm), x, y, paint, BitmapPalette::Unknown);
|
||||
}
|
||||
void RecordingCanvas::onDrawBitmapRect(const SkBitmap& bm, const SkRect* src, const SkRect& dst,
|
||||
const SkPaint* paint, SrcRectConstraint constraint) {
|
||||
fDL->drawImageRect(SkImage::MakeFromBitmap(bm), src, dst, paint, constraint,
|
||||
BitmapPalette::Unknown);
|
||||
}
|
||||
|
||||
void RecordingCanvas::drawImage(const sk_sp<SkImage>& image, SkScalar x, SkScalar y,
|
||||
const SkPaint* paint, BitmapPalette palette) {
|
||||
fDL->drawImage(image, x, y, paint, palette);
|
||||
|
||||
@@ -181,10 +181,6 @@ public:
|
||||
|
||||
void onDrawTextBlob(const SkTextBlob*, SkScalar, SkScalar, const SkPaint&) override;
|
||||
|
||||
void onDrawBitmap(const SkBitmap&, SkScalar, SkScalar, const SkPaint*) override;
|
||||
void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*,
|
||||
SrcRectConstraint) override;
|
||||
|
||||
void drawImage(const sk_sp<SkImage>& image, SkScalar left, SkScalar top, const SkPaint* paint,
|
||||
BitmapPalette pallete);
|
||||
|
||||
|
||||
@@ -81,13 +81,6 @@ public:
|
||||
const SkPaint*) {
|
||||
ADD_FAILURE() << "onDrawImageLattice not expected in this test";
|
||||
}
|
||||
void onDrawBitmap(const SkBitmap&, SkScalar dx, SkScalar dy, const SkPaint*) {
|
||||
ADD_FAILURE() << "onDrawBitmap not expected in this test";
|
||||
}
|
||||
void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*,
|
||||
SrcRectConstraint) {
|
||||
ADD_FAILURE() << "onDrawBitmapRect not expected in this test";
|
||||
}
|
||||
void onClipRRect(const SkRRect& rrect, SkClipOp, ClipEdgeStyle) {
|
||||
ADD_FAILURE() << "onClipRRect not expected in this test";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user