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

Side by Side Diff: src/core/SkTileGrid.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/SkRTree.cpp ('k') | src/core/SkTileGrid.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 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 #ifndef SkTileGrid_DEFINED 9 #ifndef SkTileGrid_DEFINED
10 #define SkTileGrid_DEFINED 10 #define SkTileGrid_DEFINED
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 */ 48 */
49 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVER RIDE; 49 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVER RIDE;
50 50
51 virtual void clear() SK_OVERRIDE; 51 virtual void clear() SK_OVERRIDE;
52 52
53 /** 53 /**
54 * Gets the number of insertions 54 * Gets the number of insertions
55 */ 55 */
56 virtual int getCount() const SK_OVERRIDE; 56 virtual int getCount() const SK_OVERRIDE;
57 57
58 virtual void rewindInserts() SK_OVERRIDE;
59
58 // Used by search() and in SkTileGridHelper implementations 60 // Used by search() and in SkTileGridHelper implementations
59 enum { 61 enum {
60 kTileFinished = -1, 62 kTileFinished = -1,
61 }; 63 };
62 private: 64 private:
63 SkTDArray<void*>& tile(int x, int y); 65 SkTDArray<void*>& tile(int x, int y);
64 66
65 int fXTileCount, fYTileCount, fTileCount; 67 int fXTileCount, fYTileCount, fTileCount;
66 SkTileGridPicture::TileGridInfo fInfo; 68 SkTileGridPicture::TileGridInfo fInfo;
67 SkTDArray<void*>* fTileData; 69 SkTDArray<void*>* fTileData;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 tileIndices[tile] = SkTileGrid::kTileFinished; 113 tileIndices[tile] = SkTileGrid::kTileFinished;
112 } 114 }
113 } 115 }
114 } 116 }
115 return minVal; 117 return minVal;
116 } 118 }
117 return NULL; 119 return NULL;
118 } 120 }
119 121
120 #endif 122 #endif
OLDNEW
« no previous file with comments | « src/core/SkRTree.cpp ('k') | src/core/SkTileGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698