From 2c8177767a4b3b6c27c6ac071c8619b557472521 Mon Sep 17 00:00:00 2001 From: "edisonn@google.com" Date: Fri, 16 Aug 2013 16:30:02 +0000 Subject: [PATCH] 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 --- experimental/PdfViewer/SkNulCanvas.h | 3 ++- experimental/PdfViewer/SkTrackDevice.h | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/experimental/PdfViewer/SkNulCanvas.h b/experimental/PdfViewer/SkNulCanvas.h index b8e8917..27dd991 100644 --- a/experimental/PdfViewer/SkNulCanvas.h +++ b/experimental/PdfViewer/SkNulCanvas.h @@ -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, diff --git a/experimental/PdfViewer/SkTrackDevice.h b/experimental/PdfViewer/SkTrackDevice.h index 9369f84..6f26121 100644 --- a/experimental/PdfViewer/SkTrackDevice.h +++ b/experimental/PdfViewer/SkTrackDevice.h @@ -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(); } -- 2.7.4