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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 const SkPoint verts[], const SkPoint texs[], | 276 const SkPoint verts[], const SkPoint texs[], |
277 const SkColor colors[], SkXfermode* xmode, | 277 const SkColor colors[], SkXfermode* xmode, |
278 const uint16_t indices[], int indexCount, | 278 const uint16_t indices[], int indexCount, |
279 const SkPaint& paint) = 0; | 279 const SkPaint& paint) = 0; |
280 /** The SkDevice passed will be an SkDevice which was returned by a call to | 280 /** The SkDevice passed will be an SkDevice which was returned by a call to |
281 onCreateCompatibleDevice on this device with kSaveLayer_Usage. | 281 onCreateCompatibleDevice on this device with kSaveLayer_Usage. |
282 */ | 282 */ |
283 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 283 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
284 const SkPaint&) = 0; | 284 const SkPaint&) = 0; |
285 | 285 |
286 // DEPRECATED -- will remove this once the subclass stop overriding it | |
287 virtual void drawPosTextOnPath(const SkDraw&, const void* text, size_t len, | |
288 const SkPoint pos[], const SkPaint&, | |
289 const SkPath&, const SkMatrix*) {} | |
290 | |
291 /** | 286 /** |
292 * On success (returns true), copy the device pixels into the bitmap. | 287 * On success (returns true), copy the device pixels into the bitmap. |
293 * On failure, the bitmap parameter is left unchanged and false is | 288 * On failure, the bitmap parameter is left unchanged and false is |
294 * returned. | 289 * returned. |
295 * | 290 * |
296 * The device's pixels are converted to the bitmap's config. The only | 291 * The device's pixels are converted to the bitmap's config. The only |
297 * supported config is kARGB_8888_Config, though this is likely to be | 292 * supported config is kARGB_8888_Config, though this is likely to be |
298 * relaxed in the future. The meaning of config kARGB_8888_Config is | 293 * relaxed in the future. The meaning of config kARGB_8888_Config is |
299 * modified by the enum param config8888. The default value interprets | 294 * modified by the enum param config8888. The default value interprets |
300 * kARGB_8888_Config as SkPMColor | 295 * kARGB_8888_Config as SkPMColor |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 SkMetaData* fMetaData; | 418 SkMetaData* fMetaData; |
424 | 419 |
425 #ifdef SK_DEBUG | 420 #ifdef SK_DEBUG |
426 bool fAttachedToCanvas; | 421 bool fAttachedToCanvas; |
427 #endif | 422 #endif |
428 | 423 |
429 typedef SkRefCnt INHERITED; | 424 typedef SkRefCnt INHERITED; |
430 }; | 425 }; |
431 | 426 |
432 #endif | 427 #endif |
OLD | NEW |