OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 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 SkPicture_DEFINED | 10 #ifndef SkPicture_DEFINED |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 */ | 470 */ |
471 size_t EXPERIMENTAL_curOpID() const; | 471 size_t EXPERIMENTAL_curOpID() const; |
472 | 472 |
473 void createHeader(SkPictInfo* info) const; | 473 void createHeader(SkPictInfo* info) const; |
474 static bool IsValidPictInfo(const SkPictInfo& info); | 474 static bool IsValidPictInfo(const SkPictInfo& info); |
475 | 475 |
476 friend class SkFlatPicture; | 476 friend class SkFlatPicture; |
477 friend class SkPicturePlayback; | 477 friend class SkPicturePlayback; |
478 friend class SkPictureRecorder; | 478 friend class SkPictureRecorder; |
479 friend class SkGpuDevice; | 479 friend class SkGpuDevice; |
| 480 friend class GrGatherCanvas; |
480 friend class GrGatherDevice; | 481 friend class GrGatherDevice; |
481 friend class SkDebugCanvas; | 482 friend class SkDebugCanvas; |
482 | 483 |
483 typedef SkRefCnt INHERITED; | 484 typedef SkRefCnt INHERITED; |
484 }; | 485 }; |
485 | 486 |
486 /** | 487 /** |
487 * Subclasses of this can be passed to canvas.drawPicture. During the drawing | 488 * Subclasses of this can be passed to canvas.drawPicture. During the drawing |
488 * of the picture, this callback will periodically be invoked. If its | 489 * of the picture, this callback will periodically be invoked. If its |
489 * abortDrawing() returns true, then picture playback will be interrupted. | 490 * abortDrawing() returns true, then picture playback will be interrupted. |
(...skipping 24 matching lines...) Expand all Loading... |
514 typedef SkRefCnt INHERITED; | 515 typedef SkRefCnt INHERITED; |
515 }; | 516 }; |
516 | 517 |
517 #endif | 518 #endif |
518 | 519 |
519 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS | 520 #ifdef SK_SUPPORT_LEGACY_PICTURE_HEADERS |
520 #include "SkPictureRecorder.h" | 521 #include "SkPictureRecorder.h" |
521 #endif | 522 #endif |
522 | 523 |
523 #endif | 524 #endif |
OLD | NEW |