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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 /** | 376 /** |
377 * PRIVATE / EXPERIMENTAL -- do not call | 377 * PRIVATE / EXPERIMENTAL -- do not call |
378 * This entry point gives the backend an opportunity to take over the rende
ring | 378 * 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 | 379 * 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 | 380 * '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 | 381 * if all rendering has been done. If false is returned, SkCanvas will |
382 * perform its own rendering pass. It is acceptable for the backend | 382 * perform its own rendering pass. It is acceptable for the backend |
383 * to perform some device-specific warm up tasks and then let SkCanvas | 383 * to perform some device-specific warm up tasks and then let SkCanvas |
384 * perform the main rendering loop (by return false from here). | 384 * perform the main rendering loop (by return false from here). |
385 */ | 385 */ |
386 virtual bool EXPERIMENTAL_drawPicture(const SkPicture& picture); | 386 virtual bool EXPERIMENTAL_drawPicture(SkPicture* picture); |
387 | 387 |
388 private: | 388 private: |
389 friend class SkCanvas; | 389 friend class SkCanvas; |
390 friend struct DeviceCM; //for setMatrixClip | 390 friend struct DeviceCM; //for setMatrixClip |
391 friend class SkDraw; | 391 friend class SkDraw; |
392 friend class SkDrawIter; | 392 friend class SkDrawIter; |
393 friend class SkDeviceFilteredPaint; | 393 friend class SkDeviceFilteredPaint; |
394 friend class SkDeviceImageFilterProxy; | 394 friend class SkDeviceImageFilterProxy; |
395 friend class SkDeferredDevice; // for newSurface | 395 friend class SkDeferredDevice; // for newSurface |
396 | 396 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 SkMetaData* fMetaData; | 431 SkMetaData* fMetaData; |
432 | 432 |
433 #ifdef SK_DEBUG | 433 #ifdef SK_DEBUG |
434 bool fAttachedToCanvas; | 434 bool fAttachedToCanvas; |
435 #endif | 435 #endif |
436 | 436 |
437 typedef SkRefCnt INHERITED; | 437 typedef SkRefCnt INHERITED; |
438 }; | 438 }; |
439 | 439 |
440 #endif | 440 #endif |
OLD | NEW |