OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
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 SkDevice_DEFINED | 8 #ifndef SkDevice_DEFINED |
9 #define SkDevice_DEFINED | 9 #define SkDevice_DEFINED |
10 | 10 |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 * and the caller may then decide to explicitly create a bitmapdevice, know
ing that later | 374 * and the caller may then decide to explicitly create a bitmapdevice, know
ing that later |
375 * it could not call drawDevice with it (but it could call drawSprite or dr
awBitmap). | 375 * it could not call drawDevice with it (but it could call drawSprite or dr
awBitmap). |
376 */ | 376 */ |
377 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) { | 377 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) { |
378 return NULL; | 378 return NULL; |
379 } | 379 } |
380 | 380 |
381 /** | 381 /** |
382 * Calls through to drawSprite, processing the imagefilter. | 382 * Calls through to drawSprite, processing the imagefilter. |
383 */ | 383 */ |
384 virtual void drawBitmapAsSpriteWithImageFilter(const SkDraw&, const SkBitmap
&, | 384 virtual void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, |
385 int x, int y, const SkPaint&)
; | 385 int x, int y, const SkPaint&); |
386 | 386 |
387 private: | 387 private: |
388 friend class SkCanvas; | 388 friend class SkCanvas; |
389 friend struct DeviceCM; //for setMatrixClip | 389 friend struct DeviceCM; //for setMatrixClip |
390 friend class SkDraw; | 390 friend class SkDraw; |
391 friend class SkDrawIter; | 391 friend class SkDrawIter; |
392 friend class SkDeviceFilteredPaint; | 392 friend class SkDeviceFilteredPaint; |
393 friend class SkImageFilter::DeviceProxy; | 393 friend class SkImageFilter::DeviceProxy; |
394 friend class SkNoPixelsBitmapDevice; | 394 friend class SkNoPixelsBitmapDevice; |
395 friend class SkSurface_Raster; | 395 friend class SkSurface_Raster; |
(...skipping 20 matching lines...) Expand all Loading... |
416 SkSurfaceProps fSurfaceProps; | 416 SkSurfaceProps fSurfaceProps; |
417 | 417 |
418 #ifdef SK_DEBUG | 418 #ifdef SK_DEBUG |
419 bool fAttachedToCanvas; | 419 bool fAttachedToCanvas; |
420 #endif | 420 #endif |
421 | 421 |
422 typedef SkRefCnt INHERITED; | 422 typedef SkRefCnt INHERITED; |
423 }; | 423 }; |
424 | 424 |
425 #endif | 425 #endif |
OLD | NEW |