| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkDevice_DEFINED | 10 #ifndef SkDevice_DEFINED |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 SkDeviceProperties fLeakyProperties; | 368 SkDeviceProperties fLeakyProperties; |
| 369 | 369 |
| 370 /** | 370 /** |
| 371 * PRIVATE / EXPERIMENTAL -- do not call | 371 * PRIVATE / EXPERIMENTAL -- do not call |
| 372 * Construct an acceleration object and attach it to 'picture' | 372 * Construct an acceleration object and attach it to 'picture' |
| 373 */ | 373 */ |
| 374 virtual void EXPERIMENTAL_optimize(SkPicture* picture); | 374 virtual void EXPERIMENTAL_optimize(SkPicture* picture); |
| 375 | 375 |
| 376 /** | 376 /** |
| 377 * PRIVATE / EXPERIMENTAL -- do not call | 377 * PRIVATE / EXPERIMENTAL -- do not call |
| 378 * Purge all discardable optimization information |
| 379 */ |
| 380 virtual void EXPERIMENTAL_purge(); |
| 381 |
| 382 /** |
| 383 * PRIVATE / EXPERIMENTAL -- do not call |
| 378 * This entry point gives the backend an opportunity to take over the rende
ring | 384 * This entry point gives the backend an opportunity to take over the rende
ring |
| 379 * of 'picture'. If optimization data is available (due to an earlier | 385 * of 'picture'. If optimization data is available (due to an earlier |
| 380 * 'optimize' call) this entry point should make use of it and return true | 386 * 'optimize' call) this entry point should make use of it and return true |
| 381 * if all rendering has been done. If false is returned, SkCanvas will | 387 * if all rendering has been done. If false is returned, SkCanvas will |
| 382 * perform its own rendering pass. It is acceptable for the backend | 388 * perform its own rendering pass. It is acceptable for the backend |
| 383 * to perform some device-specific warm up tasks and then let SkCanvas | 389 * to perform some device-specific warm up tasks and then let SkCanvas |
| 384 * perform the main rendering loop (by return false from here). | 390 * perform the main rendering loop (by return false from here). |
| 385 */ | 391 */ |
| 386 virtual bool EXPERIMENTAL_drawPicture(SkPicture* picture); | 392 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, SkPicture* picture); |
| 387 | 393 |
| 388 private: | 394 private: |
| 389 friend class SkCanvas; | 395 friend class SkCanvas; |
| 390 friend struct DeviceCM; //for setMatrixClip | 396 friend struct DeviceCM; //for setMatrixClip |
| 391 friend class SkDraw; | 397 friend class SkDraw; |
| 392 friend class SkDrawIter; | 398 friend class SkDrawIter; |
| 393 friend class SkDeviceFilteredPaint; | 399 friend class SkDeviceFilteredPaint; |
| 394 friend class SkDeviceImageFilterProxy; | 400 friend class SkDeviceImageFilterProxy; |
| 395 friend class SkDeferredDevice; // for newSurface | 401 friend class SkDeferredDevice; // for newSurface |
| 396 | 402 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 SkMetaData* fMetaData; | 437 SkMetaData* fMetaData; |
| 432 | 438 |
| 433 #ifdef SK_DEBUG | 439 #ifdef SK_DEBUG |
| 434 bool fAttachedToCanvas; | 440 bool fAttachedToCanvas; |
| 435 #endif | 441 #endif |
| 436 | 442 |
| 437 typedef SkRefCnt INHERITED; | 443 typedef SkRefCnt INHERITED; |
| 438 }; | 444 }; |
| 439 | 445 |
| 440 #endif | 446 #endif |
| OLD | NEW |