OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SKDEBUGCANVAS_H_ | 10 #ifndef SKDEBUGCANVAS_H_ |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } | 158 } |
159 bool getClipDeviceBounds(SkIRect* bounds) const override { | 159 bool getClipDeviceBounds(SkIRect* bounds) const override { |
160 if (bounds) { | 160 if (bounds) { |
161 bounds->setLargest(); | 161 bounds->setLargest(); |
162 } | 162 } |
163 return true; | 163 return true; |
164 } | 164 } |
165 | 165 |
166 protected: | 166 protected: |
167 void willSave() override; | 167 void willSave() override; |
168 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov
erride; | 168 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; |
169 void willRestore() override; | 169 void willRestore() override; |
170 | 170 |
171 void didConcat(const SkMatrix&) override; | 171 void didConcat(const SkMatrix&) override; |
172 void didSetMatrix(const SkMatrix&) override; | 172 void didSetMatrix(const SkMatrix&) override; |
173 | 173 |
174 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; | 174 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; |
175 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, | 175 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, |
176 const SkPaint&) override; | 176 const SkPaint&) override; |
177 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], | 177 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], |
178 const SkPaint&) override; | 178 const SkPaint&) override; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 void outputPoints(const SkPoint* pts, int count); | 260 void outputPoints(const SkPoint* pts, int count); |
261 void outputPointsCommon(const SkPoint* pts, int count); | 261 void outputPointsCommon(const SkPoint* pts, int count); |
262 void outputScalar(SkScalar num); | 262 void outputScalar(SkScalar num); |
263 | 263 |
264 void updatePaintFilterCanvas(); | 264 void updatePaintFilterCanvas(); |
265 | 265 |
266 typedef SkCanvas INHERITED; | 266 typedef SkCanvas INHERITED; |
267 }; | 267 }; |
268 | 268 |
269 #endif | 269 #endif |
OLD | NEW |