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

Side by Side Diff: experimental/PdfViewer/SkTrackDevice.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 | « experimental/PdfViewer/SkNulCanvas.h ('k') | no next file » | 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_SKTRACKDEVICE_H_ 1 #ifndef EXPERIMENTAL_PDFVIEWER_SKTRACKDEVICE_H_
2 #define EXPERIMENTAL_PDFVIEWER_SKTRACKDEVICE_H_ 2 #define EXPERIMENTAL_PDFVIEWER_SKTRACKDEVICE_H_
3 3
4 #include "SkDevice.h" 4 #include "SkDevice.h"
5 #include "SkTracker.h" 5 #include "SkTracker.h"
6 6
7 class SkTrackDevice : public SkDevice { 7 class SkTrackDevice : public SkDevice {
8 public: 8 public:
9 SK_DECLARE_INST_COUNT(SkTrackDevice) 9 SK_DECLARE_INST_COUNT(SkTrackDevice)
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 virtual void drawSprite(const SkDraw& dummy1, const SkBitmap& bitmap, 92 virtual void drawSprite(const SkDraw& dummy1, const SkBitmap& bitmap,
93 int x, int y, const SkPaint& paint) { 93 int x, int y, const SkPaint& paint) {
94 before(); 94 before();
95 INHERITED::drawSprite(dummy1, bitmap, x, y, paint); 95 INHERITED::drawSprite(dummy1, bitmap, x, y, paint);
96 after(); 96 after();
97 } 97 }
98 98
99 virtual void drawBitmapRect(const SkDraw& dummy1, const SkBitmap& dummy2, 99 virtual void drawBitmapRect(const SkDraw& dummy1, const SkBitmap& dummy2,
100 const SkRect* srcOrNull, const SkRect& dst, 100 const SkRect* srcOrNull, const SkRect& dst,
101 const SkPaint& paint) { 101 const SkPaint& paint,
102 SkCanvas::DrawBitmapRectFlags flags) {
102 before(); 103 before();
103 INHERITED::drawBitmapRect(dummy1, dummy2, srcOrNull, dst, paint); 104 INHERITED::drawBitmapRect(dummy1, dummy2, srcOrNull, dst, paint, flags);
104 after(); 105 after();
105 } 106 }
106 107
107 virtual void drawText(const SkDraw& dummy1, const void* text, size_t len, 108 virtual void drawText(const SkDraw& dummy1, const void* text, size_t len,
108 SkScalar x, SkScalar y, const SkPaint& paint) { 109 SkScalar x, SkScalar y, const SkPaint& paint) {
109 before(); 110 before();
110 INHERITED::drawText(dummy1, text, len, x, y, paint); 111 INHERITED::drawText(dummy1, text, len, x, y, paint);
111 after(); 112 after();
112 } 113 }
113 114
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 168 }
168 } 169 }
169 170
170 private: 171 private:
171 SkTracker* fTracker; 172 SkTracker* fTracker;
172 173
173 typedef SkDevice INHERITED; 174 typedef SkDevice INHERITED;
174 }; 175 };
175 176
176 #endif // EXPERIMENTAL_PDFVIEWER_SKTRACKDEVICE_H_ 177 #endif // EXPERIMENTAL_PDFVIEWER_SKTRACKDEVICE_H_
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkNulCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698