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

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

Issue 14820021: Fix behavior of SkPicture::kUsePathBoundsForClip_RecordingFlag to handle inverse fills and all clip… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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 | « no previous file | src/core/SkPictureRecord.cpp » ('j') | src/core/SkPictureRecord.cpp » ('J')
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 bool updateClipConservativelyUsingBounds(const SkRect&, SkRegion::Op,
107 bool doAA, bool inverseFilled);
106 void handleOptimization(int opt); 108 void handleOptimization(int opt);
107 void recordRestoreOffsetPlaceholder(SkRegion::Op); 109 void recordRestoreOffsetPlaceholder(SkRegion::Op);
108 void fillRestoreOffsetPlaceholdersForCurrentStackLevel( 110 void fillRestoreOffsetPlaceholdersForCurrentStackLevel(
109 uint32_t restoreOffset); 111 uint32_t restoreOffset);
110 112
111 SkTDArray<int32_t> fRestoreOffsetStack; 113 SkTDArray<int32_t> fRestoreOffsetStack;
112 int fFirstSavedLayerIndex; 114 int fFirstSavedLayerIndex;
113 enum { 115 enum {
114 kNoSavedLayerIndex = -1 116 kNoSavedLayerIndex = -1
115 }; 117 };
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 uint32_t fRecordFlags; 239 uint32_t fRecordFlags;
238 int fInitialSaveCount; 240 int fInitialSaveCount;
239 241
240 friend class SkPicturePlayback; 242 friend class SkPicturePlayback;
241 friend class SkPictureTester; // for unit testing 243 friend class SkPictureTester; // for unit testing
242 244
243 typedef SkCanvas INHERITED; 245 typedef SkCanvas INHERITED;
244 }; 246 };
245 247
246 #endif 248 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPictureRecord.cpp » ('j') | src/core/SkPictureRecord.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698