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

Side by Side Diff: include/core/SkDeque.h

Issue 22947003: Make ClipStack honor save flags (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Store flags in MCRec rather then using odd check Created 7 years, 4 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/SkCanvas.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 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
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 8
9 9
10 #ifndef SkDeque_DEFINED 10 #ifndef SkDeque_DEFINED
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 */ 74 */
75 Iter(); 75 Iter();
76 76
77 Iter(const SkDeque& d, IterStart startLoc); 77 Iter(const SkDeque& d, IterStart startLoc);
78 void* next(); 78 void* next();
79 void* prev(); 79 void* prev();
80 80
81 void reset(const SkDeque& d, IterStart startLoc); 81 void reset(const SkDeque& d, IterStart startLoc);
82 82
83 private: 83 private:
84 SkDeque::Block* fCurBlock; 84 SkDeque::Block* fCurBlock;
85 char* fPos; 85 char* fPos;
86 size_t fElemSize; 86 size_t fElemSize;
87 }; 87 };
88 88
89 // Inherit privately from Iter to prevent access to reverse iteration 89 // Inherit privately from Iter to prevent access to reverse iteration
90 class F2BIter : private Iter { 90 class F2BIter : private Iter {
91 public: 91 public:
92 F2BIter() {} 92 F2BIter() {}
93 93
94 /** 94 /**
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void freeBlock(Block* block); 129 void freeBlock(Block* block);
130 130
131 /** 131 /**
132 * This returns the number of chunk blocks allocated by the deque. It 132 * This returns the number of chunk blocks allocated by the deque. It
133 * can be used to gauge the effectiveness of the selected allocCount. 133 * can be used to gauge the effectiveness of the selected allocCount.
134 */ 134 */
135 int numBlocksAllocated() const; 135 int numBlocksAllocated() const;
136 }; 136 };
137 137
138 #endif 138 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698