OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |