| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 367 |
| 368 // A helper function used by derived classes to log the scale factor of a bi
tmap or image draw. | 368 // A helper function used by derived classes to log the scale factor of a bi
tmap or image draw. |
| 369 static void LogDrawScaleFactor(const SkMatrix&, SkFilterQuality); | 369 static void LogDrawScaleFactor(const SkMatrix&, SkFilterQuality); |
| 370 | 370 |
| 371 private: | 371 private: |
| 372 friend class SkCanvas; | 372 friend class SkCanvas; |
| 373 friend struct DeviceCM; //for setMatrixClip | 373 friend struct DeviceCM; //for setMatrixClip |
| 374 friend class SkDraw; | 374 friend class SkDraw; |
| 375 friend class SkDrawIter; | 375 friend class SkDrawIter; |
| 376 friend class SkDeviceFilteredPaint; | 376 friend class SkDeviceFilteredPaint; |
| 377 friend class SkImageFilter::DeviceProxy; | |
| 378 friend class SkNoPixelsBitmapDevice; | 377 friend class SkNoPixelsBitmapDevice; |
| 379 friend class SkSurface_Raster; | 378 friend class SkSurface_Raster; |
| 380 | 379 |
| 381 // used to change the backend's pixels (and possibly config/rowbytes) | 380 // used to change the backend's pixels (and possibly config/rowbytes) |
| 382 // but cannot change the width/height, so there should be no change to | 381 // but cannot change the width/height, so there should be no change to |
| 383 // any clip information. | 382 // any clip information. |
| 384 // TODO: move to SkBitmapDevice | 383 // TODO: move to SkBitmapDevice |
| 385 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) {} | 384 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) {} |
| 386 | 385 |
| 387 virtual bool forceConservativeRasterClip() const { return false; } | 386 virtual bool forceConservativeRasterClip() const { return false; } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 400 SkSurfaceProps fSurfaceProps; | 399 SkSurfaceProps fSurfaceProps; |
| 401 | 400 |
| 402 #ifdef SK_DEBUG | 401 #ifdef SK_DEBUG |
| 403 bool fAttachedToCanvas; | 402 bool fAttachedToCanvas; |
| 404 #endif | 403 #endif |
| 405 | 404 |
| 406 typedef SkRefCnt INHERITED; | 405 typedef SkRefCnt INHERITED; |
| 407 }; | 406 }; |
| 408 | 407 |
| 409 #endif | 408 #endif |
| OLD | NEW |