| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 return SkData::NewEmpty(); | 81 return SkData::NewEmpty(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 if (deepCopy) { | 84 if (deepCopy) { |
| 85 return SkData::NewWithCopy(fWriter.contiguousArray(), fWriter.bytesW
ritten()); | 85 return SkData::NewWithCopy(fWriter.contiguousArray(), fWriter.bytesW
ritten()); |
| 86 } | 86 } |
| 87 | 87 |
| 88 return fWriter.snapshotAsData(); | 88 return fWriter.snapshotAsData(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 SkPathHeap* pathHeap() { | 91 const SkPathHeap* pathHeap() const { |
| 92 return fPathHeap; | 92 return fPathHeap.get(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 const SkPictureContentInfo& contentInfo() const { | 95 const SkPictureContentInfo& contentInfo() const { |
| 96 return fContentInfo; | 96 return fContentInfo; |
| 97 } | 97 } |
| 98 | 98 |
| 99 void setFlags(uint32_t recordFlags) { | 99 void setFlags(uint32_t recordFlags) { |
| 100 fRecordFlags = recordFlags; | 100 fRecordFlags = recordFlags; |
| 101 } | 101 } |
| 102 | 102 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 friend class SkPictureTester; // for unit testing | 329 friend class SkPictureTester; // for unit testing |
| 330 | 330 |
| 331 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE | 331 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE |
| 332 SkMatrixClipStateMgr fMCMgr; | 332 SkMatrixClipStateMgr fMCMgr; |
| 333 #endif | 333 #endif |
| 334 | 334 |
| 335 typedef SkCanvas INHERITED; | 335 typedef SkCanvas INHERITED; |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 #endif | 338 #endif |
| OLD | NEW |