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

Side by Side Diff: src/core/SkTileGrid.cpp

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/SkTileGrid.h ('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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 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 8
9 #include "SkTileGrid.h" 9 #include "SkTileGrid.h"
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 void SkTileGrid::clear() { 115 void SkTileGrid::clear() {
116 for (int i = 0; i < fTileCount; i++) { 116 for (int i = 0; i < fTileCount; i++) {
117 fTileData[i].reset(); 117 fTileData[i].reset();
118 } 118 }
119 } 119 }
120 120
121 int SkTileGrid::getCount() const { 121 int SkTileGrid::getCount() const {
122 return fInsertionCount; 122 return fInsertionCount;
123 } 123 }
124
125 void SkTileGrid::rewindInserts() {
126 SkASSERT(fClient);
127 for (int i = 0; i < fTileCount; ++i) {
128 while (!fTileData[i].isEmpty() && fClient->shouldRewind(fTileData[i].top ())) {
129 fTileData[i].pop();
130 }
131 }
132 }
OLDNEW
« no previous file with comments | « src/core/SkTileGrid.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698