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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 SkDeviceProperties fLeakyProperties; | 338 SkDeviceProperties fLeakyProperties; |
339 | 339 |
340 /** | 340 /** |
341 * PRIVATE / EXPERIMENTAL -- do not call | 341 * PRIVATE / EXPERIMENTAL -- do not call |
342 * Construct an acceleration object and attach it to 'picture' | 342 * Construct an acceleration object and attach it to 'picture' |
343 */ | 343 */ |
344 virtual void EXPERIMENTAL_optimize(SkPicture* picture); | 344 virtual void EXPERIMENTAL_optimize(SkPicture* picture); |
345 | 345 |
346 /** | 346 /** |
347 * PRIVATE / EXPERIMENTAL -- do not call | 347 * PRIVATE / EXPERIMENTAL -- do not call |
| 348 * Purge all discardable optimization information for 'picture'. If |
| 349 * picture is NULL then purge discardable information for all pictures. |
| 350 */ |
| 351 virtual void EXPERIMENTAL_purge(SkPicture* picture); |
| 352 |
| 353 /** |
| 354 * PRIVATE / EXPERIMENTAL -- do not call |
348 * This entry point gives the backend an opportunity to take over the rende
ring | 355 * This entry point gives the backend an opportunity to take over the rende
ring |
349 * of 'picture'. If optimization data is available (due to an earlier | 356 * of 'picture'. If optimization data is available (due to an earlier |
350 * 'optimize' call) this entry point should make use of it and return true | 357 * 'optimize' call) this entry point should make use of it and return true |
351 * if all rendering has been done. If false is returned, SkCanvas will | 358 * if all rendering has been done. If false is returned, SkCanvas will |
352 * perform its own rendering pass. It is acceptable for the backend | 359 * perform its own rendering pass. It is acceptable for the backend |
353 * to perform some device-specific warm up tasks and then let SkCanvas | 360 * to perform some device-specific warm up tasks and then let SkCanvas |
354 * perform the main rendering loop (by return false from here). | 361 * perform the main rendering loop (by return false from here). |
355 */ | 362 */ |
356 virtual bool EXPERIMENTAL_drawPicture(SkPicture* picture); | 363 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, SkPicture* picture); |
357 | 364 |
358 private: | 365 private: |
359 friend class SkCanvas; | 366 friend class SkCanvas; |
360 friend struct DeviceCM; //for setMatrixClip | 367 friend struct DeviceCM; //for setMatrixClip |
361 friend class SkDraw; | 368 friend class SkDraw; |
362 friend class SkDrawIter; | 369 friend class SkDrawIter; |
363 friend class SkDeviceFilteredPaint; | 370 friend class SkDeviceFilteredPaint; |
364 friend class SkDeviceImageFilterProxy; | 371 friend class SkDeviceImageFilterProxy; |
365 friend class SkDeferredDevice; // for newSurface | 372 friend class SkDeferredDevice; // for newSurface |
366 | 373 |
(...skipping 22 matching lines...) Expand all Loading... |
389 SkMetaData* fMetaData; | 396 SkMetaData* fMetaData; |
390 | 397 |
391 #ifdef SK_DEBUG | 398 #ifdef SK_DEBUG |
392 bool fAttachedToCanvas; | 399 bool fAttachedToCanvas; |
393 #endif | 400 #endif |
394 | 401 |
395 typedef SkRefCnt INHERITED; | 402 typedef SkRefCnt INHERITED; |
396 }; | 403 }; |
397 | 404 |
398 #endif | 405 #endif |
OLD | NEW |