OLD | NEW |
1 #ifndef EXPERIMENTAL_PDFVIEWER_SKTRACKDEVICE_H_ | 1 /* |
2 #define EXPERIMENTAL_PDFVIEWER_SKTRACKDEVICE_H_ | 2 * Copyright 2013 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef SkTrackDevice_DEFINED |
| 9 #define SkTrackDevice_DEFINED |
3 | 10 |
4 #include "SkDevice.h" | 11 #include "SkDevice.h" |
5 #include "SkTracker.h" | 12 #include "SkTracker.h" |
6 | 13 |
7 class SkTrackDevice : public SkDevice { | 14 class SkTrackDevice : public SkDevice { |
8 public: | 15 public: |
9 SK_DECLARE_INST_COUNT(SkTrackDevice) | 16 SK_DECLARE_INST_COUNT(SkTrackDevice) |
10 | 17 |
11 SkTrackDevice(const SkBitmap& bitmap) : SkDevice(bitmap) | 18 SkTrackDevice(const SkBitmap& bitmap) : SkDevice(bitmap) |
12 , fTracker(NULL) {} | 19 , fTracker(NULL) {} |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 fTracker->after(accessBitmap(false)); | 173 fTracker->after(accessBitmap(false)); |
167 } | 174 } |
168 } | 175 } |
169 | 176 |
170 private: | 177 private: |
171 SkTracker* fTracker; | 178 SkTracker* fTracker; |
172 | 179 |
173 typedef SkDevice INHERITED; | 180 typedef SkDevice INHERITED; |
174 }; | 181 }; |
175 | 182 |
176 #endif // EXPERIMENTAL_PDFVIEWER_SKTRACKDEVICE_H_ | 183 #endif // SkTrackDevice_DEFINED |
OLD | NEW |