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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void drawSprite(const SkDraw& dummy1, const SkBitmap& bitmap, | 99 void drawSprite(const SkDraw& dummy1, const SkBitmap& bitmap, |
100 int x, int y, const SkPaint& paint) override { | 100 int x, int y, const SkPaint& paint) override { |
101 before(); | 101 before(); |
102 INHERITED::drawSprite(dummy1, bitmap, x, y, paint); | 102 INHERITED::drawSprite(dummy1, bitmap, x, y, paint); |
103 after(); | 103 after(); |
104 } | 104 } |
105 | 105 |
106 void drawBitmapRect(const SkDraw& dummy1, const SkBitmap& dummy2, | 106 void drawBitmapRect(const SkDraw& dummy1, const SkBitmap& dummy2, |
107 const SkRect* srcOrNull, const SkRect& dst, | 107 const SkRect* srcOrNull, const SkRect& dst, |
108 const SkPaint& paint, | 108 const SkPaint& paint, |
109 SK_VIRTUAL_CONSTRAINT_TYPE flags) override { | 109 SkCanvas::SrcRectConstraint flags) override { |
110 before(); | 110 before(); |
111 INHERITED::drawBitmapRect(dummy1, dummy2, srcOrNull, dst, paint, flags); | 111 INHERITED::drawBitmapRect(dummy1, dummy2, srcOrNull, dst, paint, flags); |
112 after(); | 112 after(); |
113 } | 113 } |
114 | 114 |
115 void drawText(const SkDraw& dummy1, const void* text, size_t len, | 115 void drawText(const SkDraw& dummy1, const void* text, size_t len, |
116 SkScalar x, SkScalar y, const SkPaint& paint) override { | 116 SkScalar x, SkScalar y, const SkPaint& paint) override { |
117 before(); | 117 before(); |
118 INHERITED::drawText(dummy1, text, len, x, y, paint); | 118 INHERITED::drawText(dummy1, text, len, x, y, paint); |
119 after(); | 119 after(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 167 } |
168 } | 168 } |
169 | 169 |
170 private: | 170 private: |
171 SkTracker* fTracker; | 171 SkTracker* fTracker; |
172 | 172 |
173 typedef SkBitmapDevice INHERITED; | 173 typedef SkBitmapDevice INHERITED; |
174 }; | 174 }; |
175 | 175 |
176 #endif // SkTrackDevice_DEFINED | 176 #endif // SkTrackDevice_DEFINED |
OLD | NEW |