OLD | NEW |
1 #ifndef EXPERIMENTAL_PDFVIEWER_SKTRACKER_H_ | 1 /* |
2 #define EXPERIMENTAL_PDFVIEWER_SKTRACKER_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 SkTracker_DEFINED |
| 9 #define SkTracker_DEFINED |
3 | 10 |
4 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
5 #include "SkPoint.h" | 12 #include "SkPoint.h" |
6 | 13 |
7 #define MAX_TRACKING_POINTS 100 | 14 #define MAX_TRACKING_POINTS 100 |
8 | 15 |
9 class SkTracker { | 16 class SkTracker { |
10 public: | 17 public: |
11 SkTracker() : fEnabled(false) | 18 SkTracker() : fEnabled(false) |
12 , fBreakOnAny(false) | 19 , fBreakOnAny(false) |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 SkColor fBeforeTouched[MAX_TRACKING_POINTS]; | 171 SkColor fBeforeTouched[MAX_TRACKING_POINTS]; |
165 int fCntExpectedTouched; | 172 int fCntExpectedTouched; |
166 | 173 |
167 SkIPoint fExpectedUntouched[MAX_TRACKING_POINTS]; | 174 SkIPoint fExpectedUntouched[MAX_TRACKING_POINTS]; |
168 SkColor fBeforeUntouched[MAX_TRACKING_POINTS]; | 175 SkColor fBeforeUntouched[MAX_TRACKING_POINTS]; |
169 int fCntExpectedUntouched; | 176 int fCntExpectedUntouched; |
170 | 177 |
171 int fHits; | 178 int fHits; |
172 }; | 179 }; |
173 | 180 |
174 #endif // EXPERIMENTAL_PDFVIEWER_SKTRACKER_H_ | 181 #endif // SkTracker_DEFINED |
OLD | NEW |