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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 /** Replay the current (partially recorded) operation stream into | 90 /** Replay the current (partially recorded) operation stream into |
91 canvas. This call doesn't close the current recording. | 91 canvas. This call doesn't close the current recording. |
92 */ | 92 */ |
93 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 93 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
94 friend class android::Picture; | 94 friend class android::Picture; |
95 #endif | 95 #endif |
96 friend class SkPictureRecorderReplayTester; // for unit testing | 96 friend class SkPictureRecorderReplayTester; // for unit testing |
97 void partialReplay(SkCanvas* canvas) const; | 97 void partialReplay(SkCanvas* canvas) const; |
98 | 98 |
| 99 bool fActivelyRecording; |
99 uint32_t fFlags; | 100 uint32_t fFlags; |
100 SkRect fCullRect; | 101 SkRect fCullRect; |
101 SkAutoTUnref<SkBBoxHierarchy> fBBH; | 102 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
102 SkAutoTUnref<SkRecorder> fRecorder; | 103 SkAutoTUnref<SkRecorder> fRecorder; |
103 SkAutoTUnref<SkRecord> fRecord; | 104 SkAutoTUnref<SkRecord> fRecord; |
104 | 105 |
105 typedef SkNoncopyable INHERITED; | 106 typedef SkNoncopyable INHERITED; |
106 }; | 107 }; |
107 | 108 |
108 #endif | 109 #endif |
OLD | NEW |