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

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

Issue 131343011: Initial QuadTree implementation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixed SkScalar conversion issue Created 6 years, 10 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
« no previous file with comments | « src/core/SkRTree.h ('k') | tests/BBoxHierarchyTest.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 */ 56 */
57 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVER RIDE; 57 virtual void search(const SkIRect& query, SkTDArray<void*>* results) SK_OVER RIDE;
58 58
59 virtual void clear() SK_OVERRIDE; 59 virtual void clear() SK_OVERRIDE;
60 60
61 /** 61 /**
62 * Gets the number of insertions 62 * Gets the number of insertions
63 */ 63 */
64 virtual int getCount() const SK_OVERRIDE; 64 virtual int getCount() const SK_OVERRIDE;
65 65
66 virtual int getDepth() const SK_OVERRIDE { return -1; }
67
66 virtual void rewindInserts() SK_OVERRIDE; 68 virtual void rewindInserts() SK_OVERRIDE;
67 69
68 // Used by search() and in SkTileGridHelper implementations 70 // Used by search() and in SkTileGridHelper implementations
69 enum { 71 enum {
70 kTileFinished = -1, 72 kTileFinished = -1,
71 }; 73 };
72 74
73 int tileCount(int x, int y); // For testing only. 75 int tileCount(int x, int y); // For testing only.
74 76
75 private: 77 private:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 tileIndices[tile] = SkTileGrid::kTileFinished; 133 tileIndices[tile] = SkTileGrid::kTileFinished;
132 } 134 }
133 } 135 }
134 } 136 }
135 return minVal; 137 return minVal;
136 } 138 }
137 return NULL; 139 return NULL;
138 } 140 }
139 141
140 #endif 142 #endif
OLDNEW
« no previous file with comments | « src/core/SkRTree.h ('k') | tests/BBoxHierarchyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698