pdfviewer: update interface of derived canvas and device, to reflect lastest changes in the interfaces.

Review URL: https://codereview.chromium.org/23048006

git-svn-id: http://skia.googlecode.com/svn/trunk@10780 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
edisonn@google.com 2013-08-16 16:30:02 +00:00
parent 63ce82fb41
commit 2c8177767a
2 changed files with 5 additions and 3 deletions

View File

@ -50,7 +50,8 @@ public:
const SkPaint* paint = NULL) {}
virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
const SkRect& dst,
const SkPaint* paint) {}
const SkPaint* paint,
DrawBitmapRectFlags flags) {}
virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
const SkPaint* paint = NULL) {}
virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,

View File

@ -98,9 +98,10 @@ protected:
virtual void drawBitmapRect(const SkDraw& dummy1, const SkBitmap& dummy2,
const SkRect* srcOrNull, const SkRect& dst,
const SkPaint& paint) {
const SkPaint& paint,
SkCanvas::DrawBitmapRectFlags flags) {
before();
INHERITED::drawBitmapRect(dummy1, dummy2, srcOrNull, dst, paint);
INHERITED::drawBitmapRect(dummy1, dummy2, srcOrNull, dst, paint, flags);
after();
}