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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 if (NULL != fPicture.get()) { | 92 if (NULL != fPicture.get()) { |
93 fPicture->internalOnly_EnableOpts(enableOpts); | 93 fPicture->internalOnly_EnableOpts(enableOpts); |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 private: | 97 private: |
98 #ifdef SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES | 98 #ifdef SK_SUPPORT_LEGACY_DERIVED_PICTURE_CLASSES |
99 SkAutoTUnref<SkPictureFactory> fFactory; | 99 SkAutoTUnref<SkPictureFactory> fFactory; |
100 #endif | 100 #endif |
101 | 101 |
| 102 #ifdef SK_BUILD_FOR_ANDROID |
| 103 /** Replay the current (partially recorded) operation stream into |
| 104 canvas. This call doesn't close the current recording. |
| 105 */ |
| 106 friend class AndroidPicture; |
| 107 friend class SkPictureRecorderReplayTester; // for unit testing |
| 108 void partialReplay(SkCanvas* canvas); |
| 109 #endif |
| 110 |
102 SkAutoTUnref<SkPicture> fPicture; | 111 SkAutoTUnref<SkPicture> fPicture; |
103 | 112 |
104 typedef SkNoncopyable INHERITED; | 113 typedef SkNoncopyable INHERITED; |
105 }; | 114 }; |
106 | 115 |
107 #endif | 116 #endif |
OLD | NEW |