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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 SkDeviceProperties fLeakyProperties; | 331 SkDeviceProperties fLeakyProperties; |
332 | 332 |
333 /** | 333 /** |
334 * PRIVATE / EXPERIMENTAL -- do not call | 334 * PRIVATE / EXPERIMENTAL -- do not call |
335 * Construct an acceleration object and attach it to 'picture' | 335 * Construct an acceleration object and attach it to 'picture' |
336 */ | 336 */ |
337 virtual void EXPERIMENTAL_optimize(const SkPicture* picture); | 337 virtual void EXPERIMENTAL_optimize(const SkPicture* picture); |
338 | 338 |
339 /** | 339 /** |
340 * PRIVATE / EXPERIMENTAL -- do not call | 340 * PRIVATE / EXPERIMENTAL -- do not call |
341 * Purge all discardable optimization information for 'picture'. If | |
342 * picture is NULL then purge discardable information for all pictures. | |
343 */ | |
344 virtual void EXPERIMENTAL_purge(const SkPicture* picture); | |
345 | |
346 /** | |
347 * PRIVATE / EXPERIMENTAL -- do not call | |
348 * This entry point gives the backend an opportunity to take over the rende
ring | 341 * 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 | 342 * 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 | 343 * '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 | 344 * if all rendering has been done. If false is returned, SkCanvas will |
352 * perform its own rendering pass. It is acceptable for the backend | 345 * perform its own rendering pass. It is acceptable for the backend |
353 * to perform some device-specific warm up tasks and then let SkCanvas | 346 * to perform some device-specific warm up tasks and then let SkCanvas |
354 * perform the main rendering loop (by return false from here). | 347 * perform the main rendering loop (by return false from here). |
355 */ | 348 */ |
356 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture); | 349 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture); |
357 | 350 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 SkMetaData* fMetaData; | 382 SkMetaData* fMetaData; |
390 | 383 |
391 #ifdef SK_DEBUG | 384 #ifdef SK_DEBUG |
392 bool fAttachedToCanvas; | 385 bool fAttachedToCanvas; |
393 #endif | 386 #endif |
394 | 387 |
395 typedef SkRefCnt INHERITED; | 388 typedef SkRefCnt INHERITED; |
396 }; | 389 }; |
397 | 390 |
398 #endif | 391 #endif |
OLD | NEW |