aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-01-05 11:11:21 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-05 11:11:21 -0800
commit53a8f216a85781476350474dd6e37f36426da995 (patch)
tree9f6b58832cbe60bc60bbbd1cc41513e0cdaa6317 /experimental/PdfViewer
parentaf18a09d13611526c4217656c98947f9067cb07a (diff)
Update PdfViewer's SkNulCanvas
This appears to have been missed in https://codereview.chromium.org/831253002/ (move remaining virtual draw methods to onDraw) Review URL: https://codereview.chromium.org/839433002
Diffstat (limited to 'experimental/PdfViewer')
-rw-r--r--experimental/PdfViewer/SkNulCanvas.h49
1 files changed, 27 insertions, 22 deletions
diff --git a/experimental/PdfViewer/SkNulCanvas.h b/experimental/PdfViewer/SkNulCanvas.h
index 16337ca863..5839ad32f8 100644
--- a/experimental/PdfViewer/SkNulCanvas.h
+++ b/experimental/PdfViewer/SkNulCanvas.h
@@ -26,28 +26,6 @@ public:
explicit SkNulCanvas(const SkBitmap& bitmap) : SkCanvas(bitmap) {}
virtual ~SkNulCanvas() {}
- virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE {}
- virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[],
- const SkPaint& paint) SK_OVERRIDE {}
- virtual void drawRect(const SkRect& rect, const SkPaint& paint) SK_OVERRIDE {}
- virtual void drawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE {}
- virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRIDE {}
- virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE {}
- virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
- const SkPaint* paint = NULL) SK_OVERRIDE {}
- virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
- const SkRect& dst,
- const SkPaint* paint,
- DrawBitmapRectFlags flags) SK_OVERRIDE {}
- virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
- const SkRect& dst, const SkPaint* paint = NULL) SK_OVERRIDE {}
- virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
- const SkPaint* paint = NULL) SK_OVERRIDE {}
- virtual void drawVertices(VertexMode vmode, int vertexCount,
- const SkPoint vertices[], const SkPoint texs[],
- const SkColor colors[], SkXfermode* xmode,
- const uint16_t indices[], int indexCount,
- const SkPaint& paint) SK_OVERRIDE {}
virtual void beginCommentGroup(const char* description) SK_OVERRIDE {}
virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {}
virtual void endCommentGroup() SK_OVERRIDE {}
@@ -96,6 +74,33 @@ protected:
virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {}
virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVERRIDE {}
+
+ void onDrawPaint(const SkPaint& paint) SK_OVERRIDE {}
+ void onDrawPoints(PointMode mode, size_t count, const SkPoint pts[],
+ const SkPaint& paint) SK_OVERRIDE {}
+ void onDrawRect(const SkRect& rect, const SkPaint& paint) SK_OVERRIDE {}
+ void onDrawOval(const SkRect& oval, const SkPaint&) SK_OVERRIDE {}
+ void onDrawRRect(const SkRRect& rrect, const SkPaint& paint) SK_OVERRIDE {}
+ void onDrawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE {}
+ void onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
+ const SkPaint* paint = NULL) SK_OVERRIDE {}
+ void onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src,
+ const SkRect& dst,
+ const SkPaint* paint,
+ DrawBitmapRectFlags flags) SK_OVERRIDE {}
+ void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint*) SK_OVERRIDE {}
+ void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
+ const SkPaint*) SK_OVERRIDE{}
+ void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
+ const SkRect& dst, const SkPaint* paint = NULL) SK_OVERRIDE {}
+ void onDrawSprite(const SkBitmap& bitmap, int left, int top,
+ const SkPaint* paint = NULL) SK_OVERRIDE {}
+ void onDrawVertices(VertexMode vmode, int vertexCount,
+ const SkPoint vertices[], const SkPoint texs[],
+ const SkColor colors[], SkXfermode* xmode,
+ const uint16_t indices[], int indexCount,
+ const SkPaint& paint) SK_OVERRIDE {}
+
private:
typedef SkCanvas INHERITED;