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

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

Issue 155863005: Adding release method to SkWriter32 and using it to not copy the ops data from SkPictureRecord to S… (Closed) Base URL: https://skia.googlesource.com/skia.git@array_growth
Patch Set: Rename to detatchAsData Created 6 years, 10 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
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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkWriter32.cpp » ('j') | src/core/SkWriter32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698