| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) { | 380 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) { |
| 381 return NULL; | 381 return NULL; |
| 382 } | 382 } |
| 383 | 383 |
| 384 /** | 384 /** |
| 385 * Calls through to drawSprite, processing the imagefilter. | 385 * Calls through to drawSprite, processing the imagefilter. |
| 386 */ | 386 */ |
| 387 virtual void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, | 387 virtual void drawSpriteWithFilter(const SkDraw&, const SkBitmap&, |
| 388 int x, int y, const SkPaint&); | 388 int x, int y, const SkPaint&); |
| 389 | 389 |
| 390 // A helper function used by derived classes to log the scale factor of a bi
tmap or image draw. |
| 391 static void LogDrawScaleFactor(const SkMatrix&, SkFilterQuality); |
| 392 |
| 390 private: | 393 private: |
| 391 friend class SkCanvas; | 394 friend class SkCanvas; |
| 392 friend struct DeviceCM; //for setMatrixClip | 395 friend struct DeviceCM; //for setMatrixClip |
| 393 friend class SkDraw; | 396 friend class SkDraw; |
| 394 friend class SkDrawIter; | 397 friend class SkDrawIter; |
| 395 friend class SkDeviceFilteredPaint; | 398 friend class SkDeviceFilteredPaint; |
| 396 friend class SkImageFilter::DeviceProxy; | 399 friend class SkImageFilter::DeviceProxy; |
| 397 friend class SkNoPixelsBitmapDevice; | 400 friend class SkNoPixelsBitmapDevice; |
| 398 friend class SkSurface_Raster; | 401 friend class SkSurface_Raster; |
| 399 | 402 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 419 SkSurfaceProps fSurfaceProps; | 422 SkSurfaceProps fSurfaceProps; |
| 420 | 423 |
| 421 #ifdef SK_DEBUG | 424 #ifdef SK_DEBUG |
| 422 bool fAttachedToCanvas; | 425 bool fAttachedToCanvas; |
| 423 #endif | 426 #endif |
| 424 | 427 |
| 425 typedef SkRefCnt INHERITED; | 428 typedef SkRefCnt INHERITED; |
| 426 }; | 429 }; |
| 427 | 430 |
| 428 #endif | 431 #endif |
| OLD | NEW |