Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: src/core/SkPictureRecord.h

Issue 334493002: Remove SkPicture pointer from SkPicturePlayback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« src/core/SkPicture.cpp ('K') | « src/core/SkPicturePlayback.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« src/core/SkPicture.cpp ('K') | « src/core/SkPicturePlayback.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698