| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 SkPictureRecord_DEFINED | 8 #ifndef SkPictureRecord_DEFINED |
| 9 #define SkPictureRecord_DEFINED | 9 #define SkPictureRecord_DEFINED |
| 10 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 SkScalar minY, SkScalar maxY); | 92 SkScalar minY, SkScalar maxY); |
| 93 | 93 |
| 94 const SkTDArray<SkPicture* >& getPictureRefs() const { | 94 const SkTDArray<SkPicture* >& getPictureRefs() const { |
| 95 return fPictureRefs; | 95 return fPictureRefs; |
| 96 } | 96 } |
| 97 | 97 |
| 98 void setFlags(uint32_t recordFlags) { | 98 void setFlags(uint32_t recordFlags) { |
| 99 fRecordFlags = recordFlags; | 99 fRecordFlags = recordFlags; |
| 100 } | 100 } |
| 101 | 101 |
| 102 const SkWriter32& writeStream() const { | 102 SkWriter32& writeStream() { |
| 103 return fWriter; | 103 return fWriter; |
| 104 } | 104 } |
| 105 | 105 |
| 106 void beginRecording(); | 106 void beginRecording(); |
| 107 void endRecording(); | 107 void endRecording(); |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 void handleOptimization(int opt); | 110 void handleOptimization(int opt); |
| 111 int recordRestoreOffsetPlaceholder(SkRegion::Op); | 111 int recordRestoreOffsetPlaceholder(SkRegion::Op); |
| 112 void fillRestoreOffsetPlaceholdersForCurrentStackLevel(uint32_t restoreOffse
t); | 112 void fillRestoreOffsetPlaceholdersForCurrentStackLevel(uint32_t restoreOffse
t); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 uint32_t fRecordFlags; | 274 uint32_t fRecordFlags; |
| 275 int fInitialSaveCount; | 275 int fInitialSaveCount; |
| 276 | 276 |
| 277 friend class SkPicturePlayback; | 277 friend class SkPicturePlayback; |
| 278 friend class SkPictureTester; // for unit testing | 278 friend class SkPictureTester; // for unit testing |
| 279 | 279 |
| 280 typedef SkCanvas INHERITED; | 280 typedef SkCanvas INHERITED; |
| 281 }; | 281 }; |
| 282 | 282 |
| 283 #endif | 283 #endif |
| OLD | NEW |