OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 #ifndef SkPictureRecord_DEFINED | 8 #ifndef SkPictureRecord_DEFINED |
9 #define SkPictureRecord_DEFINED | 9 #define SkPictureRecord_DEFINED |
10 | 10 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 96 } |
97 | 97 |
98 const SkWriter32& writeStream() const { | 98 const SkWriter32& writeStream() const { |
99 return fWriter; | 99 return fWriter; |
100 } | 100 } |
101 | 101 |
102 void beginRecording(); | 102 void beginRecording(); |
103 void endRecording(); | 103 void endRecording(); |
104 | 104 |
105 private: | 105 private: |
| 106 bool updateClipConservativelyUsingBounds(const SkRect&, SkRegion::Op, |
| 107 bool doAA, bool inverseFilled); |
106 void handleOptimization(int opt); | 108 void handleOptimization(int opt); |
107 void recordRestoreOffsetPlaceholder(SkRegion::Op); | 109 void recordRestoreOffsetPlaceholder(SkRegion::Op); |
108 void fillRestoreOffsetPlaceholdersForCurrentStackLevel( | 110 void fillRestoreOffsetPlaceholdersForCurrentStackLevel( |
109 uint32_t restoreOffset); | 111 uint32_t restoreOffset); |
110 | 112 |
111 SkTDArray<int32_t> fRestoreOffsetStack; | 113 SkTDArray<int32_t> fRestoreOffsetStack; |
112 int fFirstSavedLayerIndex; | 114 int fFirstSavedLayerIndex; |
113 enum { | 115 enum { |
114 kNoSavedLayerIndex = -1 | 116 kNoSavedLayerIndex = -1 |
115 }; | 117 }; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 uint32_t fRecordFlags; | 239 uint32_t fRecordFlags; |
238 int fInitialSaveCount; | 240 int fInitialSaveCount; |
239 | 241 |
240 friend class SkPicturePlayback; | 242 friend class SkPicturePlayback; |
241 friend class SkPictureTester; // for unit testing | 243 friend class SkPictureTester; // for unit testing |
242 | 244 |
243 typedef SkCanvas INHERITED; | 245 typedef SkCanvas INHERITED; |
244 }; | 246 }; |
245 | 247 |
246 #endif | 248 #endif |
OLD | NEW |