Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1162)

Side by Side Diff: experimental/PdfViewer/SkNulCanvas.h

Issue 23048006: pdfviewer: update interface of derived canvas and device, to reflect lastest changes in the interfa… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | experimental/PdfViewer/SkTrackDevice.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ 1 #ifndef EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_
2 #define EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ 2 #define EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_
3 3
4 #include "SkCanvas.h" 4 #include "SkCanvas.h"
5 5
6 class SK_API SkNulCanvas : public SkCanvas { 6 class SK_API SkNulCanvas : public SkCanvas {
7 public: 7 public:
8 SK_DECLARE_INST_COUNT(SkNulCanvas); 8 SK_DECLARE_INST_COUNT(SkNulCanvas);
9 9
10 SkNulCanvas() {} 10 SkNulCanvas() {}
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], 43 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[],
44 const SkPaint& paint) {} 44 const SkPaint& paint) {}
45 virtual void drawRect(const SkRect& rect, const SkPaint& paint) {} 45 virtual void drawRect(const SkRect& rect, const SkPaint& paint) {}
46 virtual void drawOval(const SkRect& oval, const SkPaint&) {} 46 virtual void drawOval(const SkRect& oval, const SkPaint&) {}
47 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) {} 47 virtual void drawRRect(const SkRRect& rrect, const SkPaint& paint) {}
48 virtual void drawPath(const SkPath& path, const SkPaint& paint) {} 48 virtual void drawPath(const SkPath& path, const SkPaint& paint) {}
49 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 49 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
50 const SkPaint* paint = NULL) {} 50 const SkPaint* paint = NULL) {}
51 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 51 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
52 const SkRect& dst, 52 const SkRect& dst,
53 const SkPaint* paint) {} 53 const SkPaint* paint,
54 DrawBitmapRectFlags flags) {}
54 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 55 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
55 const SkPaint* paint = NULL) {} 56 const SkPaint* paint = NULL) {}
56 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 57 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
57 const SkRect& dst, const SkPaint* paint = NULL) {} 58 const SkRect& dst, const SkPaint* paint = NULL) {}
58 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 59 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
59 const SkPaint* paint = NULL) {} 60 const SkPaint* paint = NULL) {}
60 virtual void drawText(const void* text, size_t byteLength, SkScalar x, 61 virtual void drawText(const void* text, size_t byteLength, SkScalar x,
61 SkScalar y, const SkPaint& paint) {} 62 SkScalar y, const SkPaint& paint) {}
62 virtual void drawPosText(const void* text, size_t byteLength, 63 virtual void drawPosText(const void* text, size_t byteLength,
63 const SkPoint pos[], const SkPaint& paint) {} 64 const SkPoint pos[], const SkPaint& paint) {}
(...skipping 18 matching lines...) Expand all
82 83
83 protected: 84 protected:
84 virtual SkCanvas* canvasForDrawIter() {return NULL;} 85 virtual SkCanvas* canvasForDrawIter() {return NULL;}
85 virtual SkDevice* setDevice(SkDevice* device) {return NULL;} 86 virtual SkDevice* setDevice(SkDevice* device) {return NULL;}
86 87
87 private: 88 private:
88 typedef SkCanvas INHERITED; 89 typedef SkCanvas INHERITED;
89 }; 90 };
90 91
91 #endif // EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ 92 #endif // EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_
OLDNEW
« no previous file with comments | « no previous file | experimental/PdfViewer/SkTrackDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698