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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 virtual ~SkTrackDevice() {} | 32 virtual ~SkTrackDevice() {} |
33 | 33 |
34 // Install a tracker - we can reuse the tracker between multiple devices, an
d the state of the | 34 // Install a tracker - we can reuse the tracker between multiple devices, an
d the state of the |
35 // tracker is preserved - number and location of poinbts, ... | 35 // tracker is preserved - number and location of poinbts, ... |
36 void installTracker(SkTracker* tracker) { | 36 void installTracker(SkTracker* tracker) { |
37 fTracker = tracker; | 37 fTracker = tracker; |
38 fTracker->newFrame(); | 38 fTracker->newFrame(); |
39 } | 39 } |
40 | 40 |
41 protected: | 41 protected: |
| 42 #if 0 // clear is deprecated (and private) |
42 virtual void clear(SkColor color) { | 43 virtual void clear(SkColor color) { |
43 before(); | 44 before(); |
44 INHERITED::clear(color); | 45 INHERITED::clear(color); |
45 after(); | 46 after(); |
46 } | 47 } |
| 48 #endif |
47 | 49 |
48 virtual void drawPaint(const SkDraw& dummy1, const SkPaint& paint) { | 50 virtual void drawPaint(const SkDraw& dummy1, const SkPaint& paint) { |
49 before(); | 51 before(); |
50 INHERITED::drawPaint(dummy1, paint); | 52 INHERITED::drawPaint(dummy1, paint); |
51 after(); | 53 after(); |
52 } | 54 } |
53 | 55 |
54 virtual void drawPoints(const SkDraw& dummy1, SkCanvas::PointMode mode, size
_t count, | 56 virtual void drawPoints(const SkDraw& dummy1, SkCanvas::PointMode mode, size
_t count, |
55 const SkPoint dummy2[], const SkPaint& paint) { | 57 const SkPoint dummy2[], const SkPaint& paint) { |
56 before(); | 58 before(); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 169 } |
168 } | 170 } |
169 | 171 |
170 private: | 172 private: |
171 SkTracker* fTracker; | 173 SkTracker* fTracker; |
172 | 174 |
173 typedef SkBitmapDevice INHERITED; | 175 typedef SkBitmapDevice INHERITED; |
174 }; | 176 }; |
175 | 177 |
176 #endif // SkTrackDevice_DEFINED | 178 #endif // SkTrackDevice_DEFINED |
OLD | NEW |