| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 347 |
| 348 const SkImageInfo fInfo; | 348 const SkImageInfo fInfo; |
| 349 const Usage fUsage; | 349 const Usage fUsage; |
| 350 const SkPixelGeometry fPixelGeometry; | 350 const SkPixelGeometry fPixelGeometry; |
| 351 }; | 351 }; |
| 352 | 352 |
| 353 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) { | 353 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) { |
| 354 return NULL; | 354 return NULL; |
| 355 } | 355 } |
| 356 | 356 |
| 357 // Will replace onCreateCompatibleDevice |
| 358 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) { |
| 359 return NULL; |
| 360 } |
| 361 |
| 357 virtual void initForRootLayer(SkPixelGeometry geo); | 362 virtual void initForRootLayer(SkPixelGeometry geo); |
| 358 | 363 |
| 359 private: | 364 private: |
| 360 friend class SkCanvas; | 365 friend class SkCanvas; |
| 361 friend struct DeviceCM; //for setMatrixClip | 366 friend struct DeviceCM; //for setMatrixClip |
| 362 friend class SkDraw; | 367 friend class SkDraw; |
| 363 friend class SkDrawIter; | 368 friend class SkDrawIter; |
| 364 friend class SkDeviceFilteredPaint; | 369 friend class SkDeviceFilteredPaint; |
| 365 friend class SkDeviceImageFilterProxy; | 370 friend class SkDeviceImageFilterProxy; |
| 366 friend class SkDeferredDevice; // for newSurface | 371 friend class SkDeferredDevice; // for newSurface |
| (...skipping 23 matching lines...) Expand all Loading... |
| 390 SkDeviceProperties* fLeakyProperties; // will always exist. | 395 SkDeviceProperties* fLeakyProperties; // will always exist. |
| 391 | 396 |
| 392 #ifdef SK_DEBUG | 397 #ifdef SK_DEBUG |
| 393 bool fAttachedToCanvas; | 398 bool fAttachedToCanvas; |
| 394 #endif | 399 #endif |
| 395 | 400 |
| 396 typedef SkRefCnt INHERITED; | 401 typedef SkRefCnt INHERITED; |
| 397 }; | 402 }; |
| 398 | 403 |
| 399 #endif | 404 #endif |
| OLD | NEW |