| 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 "SkBitmapDevice.h" | 11 #include "SkBitmapDevice.h" |
| 12 #include "SkTracker.h" | 12 #include "SkTracker.h" |
| 13 | 13 |
| 14 /** \class SkTrackDevice |
| 15 * |
| 16 * A Track Device is used to track that callstack of an operation that affecte
d some pixels. |
| 17 * It can be used with SampleApp to investigate bugs (CL not checked in yet). |
| 18 * |
| 19 */ |
| 14 class SkTrackDevice : public SkBitmapDevice { | 20 class SkTrackDevice : public SkBitmapDevice { |
| 15 public: | 21 public: |
| 16 SK_DECLARE_INST_COUNT(SkTrackDevice) | 22 SK_DECLARE_INST_COUNT(SkTrackDevice) |
| 17 | 23 |
| 18 SkTrackDevice(const SkBitmap& bitmap) : SkBitmapDevice(bitmap) | 24 SkTrackDevice(const SkBitmap& bitmap) : SkBitmapDevice(bitmap) |
| 19 , fTracker(NULL) {} | 25 , fTracker(NULL) {} |
| 20 | 26 |
| 21 SkTrackDevice(const SkBitmap& bitmap, const SkDeviceProperties& deviceProper
ties) | 27 SkTrackDevice(const SkBitmap& bitmap, const SkDeviceProperties& deviceProper
ties) |
| 22 : SkBitmapDevice(bitmap, deviceProperties) | 28 : SkBitmapDevice(bitmap, deviceProperties) |
| 23 , fTracker(NULL) {} | 29 , fTracker(NULL) {} |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 } | 182 } |
| 177 } | 183 } |
| 178 | 184 |
| 179 private: | 185 private: |
| 180 SkTracker* fTracker; | 186 SkTracker* fTracker; |
| 181 | 187 |
| 182 typedef SkBitmapDevice INHERITED; | 188 typedef SkBitmapDevice INHERITED; |
| 183 }; | 189 }; |
| 184 | 190 |
| 185 #endif // SkTrackDevice_DEFINED | 191 #endif // SkTrackDevice_DEFINED |
| OLD | NEW |