OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 The Android Open Source Project |
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 SkDevice_DEFINED | 10 #ifndef SkDevice_DEFINED |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 * passed in). | 204 * passed in). |
205 */ | 205 */ |
206 virtual void setMatrixClip(const SkMatrix&, const SkRegion&, | 206 virtual void setMatrixClip(const SkMatrix&, const SkRegion&, |
207 const SkClipStack&) {}; | 207 const SkClipStack&) {}; |
208 | 208 |
209 /** Clears the entire device to the specified color (including alpha). | 209 /** Clears the entire device to the specified color (including alpha). |
210 * Ignores the clip. | 210 * Ignores the clip. |
211 */ | 211 */ |
212 virtual void clear(SkColor color) = 0; | 212 virtual void clear(SkColor color) = 0; |
213 | 213 |
214 /** | 214 SK_ATTR_DEPRECATED("use clear() instead") |
215 * Deprecated name for clear. | |
216 */ | |
217 void eraseColor(SkColor eraseColor) { this->clear(eraseColor); } | 215 void eraseColor(SkColor eraseColor) { this->clear(eraseColor); } |
218 | 216 |
219 /** These are called inside the per-device-layer loop for each draw call. | 217 /** These are called inside the per-device-layer loop for each draw call. |
220 When these are called, we have already applied any saveLayer operations, | 218 When these are called, we have already applied any saveLayer operations, |
221 and are handling any looping from the paint, and any effects from the | 219 and are handling any looping from the paint, and any effects from the |
222 DrawFilter. | 220 DrawFilter. |
223 */ | 221 */ |
224 virtual void drawPaint(const SkDraw&, const SkPaint& paint) = 0; | 222 virtual void drawPaint(const SkDraw&, const SkPaint& paint) = 0; |
225 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, | 223 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun
t, |
226 const SkPoint[], const SkPaint& paint) = 0; | 224 const SkPoint[], const SkPaint& paint) = 0; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 SkMetaData* fMetaData; | 421 SkMetaData* fMetaData; |
424 | 422 |
425 #ifdef SK_DEBUG | 423 #ifdef SK_DEBUG |
426 bool fAttachedToCanvas; | 424 bool fAttachedToCanvas; |
427 #endif | 425 #endif |
428 | 426 |
429 typedef SkRefCnt INHERITED; | 427 typedef SkRefCnt INHERITED; |
430 }; | 428 }; |
431 | 429 |
432 #endif | 430 #endif |
OLD | NEW |