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