| 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); | |
| 108 void handleOptimization(int opt); | 106 void handleOptimization(int opt); |
| 109 void recordRestoreOffsetPlaceholder(SkRegion::Op); | 107 void recordRestoreOffsetPlaceholder(SkRegion::Op); |
| 110 void fillRestoreOffsetPlaceholdersForCurrentStackLevel( | 108 void fillRestoreOffsetPlaceholdersForCurrentStackLevel( |
| 111 uint32_t restoreOffset); | 109 uint32_t restoreOffset); |
| 112 | 110 |
| 113 SkTDArray<int32_t> fRestoreOffsetStack; | 111 SkTDArray<int32_t> fRestoreOffsetStack; |
| 114 int fFirstSavedLayerIndex; | 112 int fFirstSavedLayerIndex; |
| 115 enum { | 113 enum { |
| 116 kNoSavedLayerIndex = -1 | 114 kNoSavedLayerIndex = -1 |
| 117 }; | 115 }; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 uint32_t fRecordFlags; | 237 uint32_t fRecordFlags; |
| 240 int fInitialSaveCount; | 238 int fInitialSaveCount; |
| 241 | 239 |
| 242 friend class SkPicturePlayback; | 240 friend class SkPicturePlayback; |
| 243 friend class SkPictureTester; // for unit testing | 241 friend class SkPictureTester; // for unit testing |
| 244 | 242 |
| 245 typedef SkCanvas INHERITED; | 243 typedef SkCanvas INHERITED; |
| 246 }; | 244 }; |
| 247 | 245 |
| 248 #endif | 246 #endif |
| OLD | NEW |