| 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 /** | 341 /** |
| 342 * PRIVATE / EXPERIMENTAL -- do not call | 342 * PRIVATE / EXPERIMENTAL -- do not call |
| 343 * This entry point gives the backend an opportunity to take over the rende
ring | 343 * This entry point gives the backend an opportunity to take over the rende
ring |
| 344 * of 'picture'. If optimization data is available (due to an earlier | 344 * of 'picture'. If optimization data is available (due to an earlier |
| 345 * 'optimize' call) this entry point should make use of it and return true | 345 * 'optimize' call) this entry point should make use of it and return true |
| 346 * if all rendering has been done. If false is returned, SkCanvas will | 346 * if all rendering has been done. If false is returned, SkCanvas will |
| 347 * perform its own rendering pass. It is acceptable for the backend | 347 * perform its own rendering pass. It is acceptable for the backend |
| 348 * to perform some device-specific warm up tasks and then let SkCanvas | 348 * to perform some device-specific warm up tasks and then let SkCanvas |
| 349 * perform the main rendering loop (by return false from here). | 349 * perform the main rendering loop (by return false from here). |
| 350 */ | 350 */ |
| 351 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture); | 351 virtual bool EXPERIMENTAL_drawPicture(SkCanvas*, const SkPicture*, const SkM
atrix*, |
| 352 const SkPaint*); |
| 352 | 353 |
| 353 private: | 354 private: |
| 354 friend class SkCanvas; | 355 friend class SkCanvas; |
| 355 friend struct DeviceCM; //for setMatrixClip | 356 friend struct DeviceCM; //for setMatrixClip |
| 356 friend class SkDraw; | 357 friend class SkDraw; |
| 357 friend class SkDrawIter; | 358 friend class SkDrawIter; |
| 358 friend class SkDeviceFilteredPaint; | 359 friend class SkDeviceFilteredPaint; |
| 359 friend class SkDeviceImageFilterProxy; | 360 friend class SkDeviceImageFilterProxy; |
| 360 friend class SkDeferredDevice; // for newSurface | 361 friend class SkDeferredDevice; // for newSurface |
| 361 | 362 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 386 SkMetaData* fMetaData; | 387 SkMetaData* fMetaData; |
| 387 | 388 |
| 388 #ifdef SK_DEBUG | 389 #ifdef SK_DEBUG |
| 389 bool fAttachedToCanvas; | 390 bool fAttachedToCanvas; |
| 390 #endif | 391 #endif |
| 391 | 392 |
| 392 typedef SkRefCnt INHERITED; | 393 typedef SkRefCnt INHERITED; |
| 393 }; | 394 }; |
| 394 | 395 |
| 395 #endif | 396 #endif |
| OLD | NEW |