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 |
| 11 #include "../../src/core/SkMiniRecorder.h" |
11 #include "SkBBHFactory.h" | 12 #include "SkBBHFactory.h" |
12 #include "SkPicture.h" | 13 #include "SkPicture.h" |
13 #include "SkRefCnt.h" | 14 #include "SkRefCnt.h" |
14 | 15 |
15 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 16 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
16 namespace android { | 17 namespace android { |
17 class Picture; | 18 class Picture; |
18 }; | 19 }; |
19 #endif | 20 #endif |
20 | 21 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 #endif | 96 #endif |
96 friend class SkPictureRecorderReplayTester; // for unit testing | 97 friend class SkPictureRecorderReplayTester; // for unit testing |
97 void partialReplay(SkCanvas* canvas) const; | 98 void partialReplay(SkCanvas* canvas) const; |
98 | 99 |
99 bool fActivelyRecording; | 100 bool fActivelyRecording; |
100 uint32_t fFlags; | 101 uint32_t fFlags; |
101 SkRect fCullRect; | 102 SkRect fCullRect; |
102 SkAutoTUnref<SkBBoxHierarchy> fBBH; | 103 SkAutoTUnref<SkBBoxHierarchy> fBBH; |
103 SkAutoTUnref<SkRecorder> fRecorder; | 104 SkAutoTUnref<SkRecorder> fRecorder; |
104 SkAutoTUnref<SkRecord> fRecord; | 105 SkAutoTUnref<SkRecord> fRecord; |
| 106 SkMiniRecorder fMiniRecorder; |
105 | 107 |
106 typedef SkNoncopyable INHERITED; | 108 typedef SkNoncopyable INHERITED; |
107 }; | 109 }; |
108 | 110 |
109 #endif | 111 #endif |
OLD | NEW |