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

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

Issue 12817011: Fixing SkPicture command pattern optimizations to make them work correctly with bounding box hierar… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | 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 /* 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
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 void handleOptimization(int opt);
106 void recordRestoreOffsetPlaceholder(SkRegion::Op); 107 void recordRestoreOffsetPlaceholder(SkRegion::Op);
107 void fillRestoreOffsetPlaceholdersForCurrentStackLevel( 108 void fillRestoreOffsetPlaceholdersForCurrentStackLevel(
108 uint32_t restoreOffset); 109 uint32_t restoreOffset);
109 110
110 SkTDArray<int32_t> fRestoreOffsetStack; 111 SkTDArray<int32_t> fRestoreOffsetStack;
111 int fFirstSavedLayerIndex; 112 int fFirstSavedLayerIndex;
112 enum { 113 enum {
113 kNoSavedLayerIndex = -1 114 kNoSavedLayerIndex = -1
114 }; 115 };
115 116
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 uint32_t fRecordFlags; 237 uint32_t fRecordFlags;
237 int fInitialSaveCount; 238 int fInitialSaveCount;
238 239
239 friend class SkPicturePlayback; 240 friend class SkPicturePlayback;
240 friend class SkPictureTester; // for unit testing 241 friend class SkPictureTester; // for unit testing
241 242
242 typedef SkCanvas INHERITED; 243 typedef SkCanvas INHERITED;
243 }; 244 };
244 245
245 #endif 246 #endif
OLDNEW
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698