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 SkTracker_DEFINED | 8 #ifndef SkTracker_DEFINED |
9 #define SkTracker_DEFINED | 9 #define SkTracker_DEFINED |
10 | 10 |
11 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
12 #include "SkPoint.h" | 12 #include "SkPoint.h" |
13 | 13 |
14 // TODO(edisonn): draw plan from point! - list of draw ops of a point, like a tr
ee! | 14 // TODO(edisonn): draw plan from point! - list of draw ops of a point, like a tr
ee! |
15 // TODO(edisonn): Minimal PDF to draw some points - remove everything that it is
not needed, | 15 // TODO(edisonn): Minimal PDF to draw some points - remove everything that it is
not needed, |
16 // save pdf uncompressed | 16 // save pdf uncompressed |
17 | 17 |
18 #define MAX_TRACKING_POINTS 100 | 18 #define MAX_TRACKING_POINTS 100 |
19 | 19 |
| 20 /** \class SkTracker |
| 21 * |
| 22 * A Tracker can be attached to a SkTrackDevice and it will store the track pi
xels. |
| 23 * It can be used with SampleApp to investigate bugs (CL not checked in yet). |
| 24 * |
| 25 */ |
20 class SkTracker { | 26 class SkTracker { |
21 public: | 27 public: |
22 SkTracker() : fEnabled(false) | 28 SkTracker() : fEnabled(false) |
23 , fBreakOnAny(false) | 29 , fBreakOnAny(false) |
24 , fCntExpectedTouched(0) | 30 , fCntExpectedTouched(0) |
25 , fCntExpectedUntouched(0) | 31 , fCntExpectedUntouched(0) |
26 , fHits(0) {} | 32 , fHits(0) {} |
27 | 33 |
28 virtual ~SkTracker() {} | 34 virtual ~SkTracker() {} |
29 | 35 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 int fCntExpectedTouched; | 186 int fCntExpectedTouched; |
181 | 187 |
182 SkIPoint fExpectedUntouched[MAX_TRACKING_POINTS]; | 188 SkIPoint fExpectedUntouched[MAX_TRACKING_POINTS]; |
183 SkColor fBeforeUntouched[MAX_TRACKING_POINTS]; | 189 SkColor fBeforeUntouched[MAX_TRACKING_POINTS]; |
184 int fCntExpectedUntouched; | 190 int fCntExpectedUntouched; |
185 | 191 |
186 int fHits; | 192 int fHits; |
187 }; | 193 }; |
188 | 194 |
189 #endif // SkTracker_DEFINED | 195 #endif // SkTracker_DEFINED |
OLD | NEW |