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

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

Issue 452233002: Make BBH::search() const. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More const for tile() Created 6 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
« no previous file with comments | « src/core/SkBBoxHierarchy.h ('k') | src/core/SkQuadTree.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkQuadTree_DEFINED 8 #ifndef SkQuadTree_DEFINED
9 #define SkQuadTree_DEFINED 9 #define SkQuadTree_DEFINED
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void insert(void* data, const SkIRect& bounds, bool defer = false) S K_OVERRIDE; 47 virtual void insert(void* data, const SkIRect& bounds, bool defer = false) S K_OVERRIDE;
48 48
49 /** 49 /**
50 * If any inserts have been deferred, this will add them into the tree 50 * If any inserts have been deferred, this will add them into the tree
51 */ 51 */
52 virtual void flushDeferredInserts() SK_OVERRIDE; 52 virtual void flushDeferredInserts() SK_OVERRIDE;
53 53
54 /** 54 /**
55 * Given a query rectangle, populates the passed-in array with the elements it intersects 55 * Given a query rectangle, populates the passed-in array with the elements it intersects
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) const S K_OVERRIDE;
58 58
59 virtual void clear() SK_OVERRIDE; 59 virtual void clear() SK_OVERRIDE;
60 60
61 /** 61 /**
62 * Gets the depth of the tree structure 62 * Gets the depth of the tree structure
63 */ 63 */
64 virtual int getDepth() const SK_OVERRIDE; 64 virtual int getDepth() const SK_OVERRIDE;
65 65
66 /** 66 /**
67 * This gets the insertion count (rather than the node count) 67 * This gets the insertion count (rather than the node count)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void insert(Node* node, Entry* entry); 104 void insert(Node* node, Entry* entry);
105 void split(Node* node); 105 void split(Node* node);
106 void search(Node* node, const SkIRect& query, SkTDArray<void*>* results) con st; 106 void search(Node* node, const SkIRect& query, SkTDArray<void*>* results) con st;
107 void clear(Node* node); 107 void clear(Node* node);
108 int getDepth(Node* node) const; 108 int getDepth(Node* node) const;
109 109
110 typedef SkBBoxHierarchy INHERITED; 110 typedef SkBBoxHierarchy INHERITED;
111 }; 111 };
112 112
113 #endif 113 #endif
OLDNEW
« no previous file with comments | « src/core/SkBBoxHierarchy.h ('k') | src/core/SkQuadTree.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698