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

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

Issue 131343011: Initial QuadTree implementation (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Removed SkQuadTreePicture.h from public headers 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
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 SkBBoxHierarchy_DEFINED 9 #ifndef SkBBoxHierarchy_DEFINED
10 #define SkBBoxHierarchy_DEFINED 10 #define SkBBoxHierarchy_DEFINED
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void search(const SkIRect& query, SkTDArray<void*>* results) = 0; 62 virtual void search(const SkIRect& query, SkTDArray<void*>* results) = 0;
63 63
64 virtual void clear() = 0; 64 virtual void clear() = 0;
65 65
66 /** 66 /**
67 * Gets the number of insertions 67 * Gets the number of insertions
68 */ 68 */
69 virtual int getCount() const = 0; 69 virtual int getCount() const = 0;
70 70
71 /** 71 /**
72 * Gets the depth of the tree structure
reed1 2014/01/29 16:58:28 Questions for the dox: What is this used for? Wha
sugoi1 2014/01/29 18:21:54 Done.
73 */
74 virtual int getDepth() const = 0;
75
76 /**
72 * Rewinds all the most recently inserted data elements until an element 77 * Rewinds all the most recently inserted data elements until an element
73 * is encountered for which client->shouldRewind(data) returns false. May 78 * is encountered for which client->shouldRewind(data) returns false. May
74 * not rewind elements that were inserted prior to the last call to 79 * not rewind elements that were inserted prior to the last call to
75 * flushDeferredInserts. 80 * flushDeferredInserts.
76 */ 81 */
77 virtual void rewindInserts() = 0; 82 virtual void rewindInserts() = 0;
78 83
79 void setClient(SkBBoxHierarchyClient* client) { fClient = client; } 84 void setClient(SkBBoxHierarchyClient* client) { fClient = client; }
80 85
81 protected: 86 protected:
82 SkBBoxHierarchyClient* fClient; 87 SkBBoxHierarchyClient* fClient;
83 88
84 private: 89 private:
85 typedef SkRefCnt INHERITED; 90 typedef SkRefCnt INHERITED;
86 }; 91 };
87 92
88 #endif 93 #endif
OLDNEW
« no previous file with comments | « samplecode/SamplePictFile.cpp ('k') | src/core/SkQuadTree.h » ('j') | src/core/SkRTree.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698