OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
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 SkPictureRecorder_DEFINED | 8 #ifndef SkPictureRecorder_DEFINED |
9 #define SkPictureRecorder_DEFINED | 9 #define SkPictureRecorder_DEFINED |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 class SkPictureRecord; | 24 class SkPictureRecord; |
25 class SkRecord; | 25 class SkRecord; |
26 class SkRecorder; | 26 class SkRecorder; |
27 | 27 |
28 class SK_API SkPictureRecorder : SkNoncopyable { | 28 class SK_API SkPictureRecorder : SkNoncopyable { |
29 public: | 29 public: |
30 SkPictureRecorder(); | 30 SkPictureRecorder(); |
31 ~SkPictureRecorder(); | 31 ~SkPictureRecorder(); |
32 | 32 |
33 enum RecordFlags { | 33 enum RecordFlags { |
34 // This flag indicates that, if some BHH is being computed, saveLayer | 34 #ifdef SK_SUPPORT_LEGACY_COMPUTESAVELAYER_FLAG |
35 // information should also be extracted at the same time. | |
36 kComputeSaveLayerInfo_RecordFlag = 1 << 0, | 35 kComputeSaveLayerInfo_RecordFlag = 1 << 0, |
| 36 #endif |
37 | 37 |
38 // If you call drawPicture() or drawDrawable() on the recording canvas,
this flag forces | 38 // If you call drawPicture() or drawDrawable() on the recording canvas,
this flag forces |
39 // that object to playback its contents immediately rather than reffing
the object. | 39 // that object to playback its contents immediately rather than reffing
the object. |
40 kPlaybackDrawPicture_RecordFlag = 1 << 1, | 40 kPlaybackDrawPicture_RecordFlag = 1 << 1, |
41 }; | 41 }; |
42 | 42 |
43 enum FinishFlags { | 43 enum FinishFlags { |
44 kReturnNullForEmpty_FinishFlag = 1 << 0, // no draw-ops will return n
ullptr | 44 kReturnNullForEmpty_FinishFlag = 1 << 0, // no draw-ops will return n
ullptr |
45 }; | 45 }; |
46 | 46 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 SkRect fCullRect; | 132 SkRect fCullRect; |
133 SkAutoTUnref<SkBBoxHierarchy> fBBH; | 133 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
134 SkAutoTUnref<SkRecorder> fRecorder; | 134 SkAutoTUnref<SkRecorder> fRecorder; |
135 SkAutoTUnref<SkRecord> fRecord; | 135 SkAutoTUnref<SkRecord> fRecord; |
136 SkMiniRecorder fMiniRecorder; | 136 SkMiniRecorder fMiniRecorder; |
137 | 137 |
138 typedef SkNoncopyable INHERITED; | 138 typedef SkNoncopyable INHERITED; |
139 }; | 139 }; |
140 | 140 |
141 #endif | 141 #endif |
OLD | NEW |