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

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

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! Created 5 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/codec/SkJpegDecoderMgr.h ('k') | src/core/SkBigPicture.h » ('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 2012 Google Inc. 2 * Copyright 2012 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 SkBBoxHierarchy_DEFINED 8 #ifndef SkBBoxHierarchy_DEFINED
9 #define SkBBoxHierarchy_DEFINED 9 #define SkBBoxHierarchy_DEFINED
10 10
11 #include "SkRect.h" 11 #include "SkRect.h"
12 #include "SkRefCnt.h" 12 #include "SkRefCnt.h"
13 #include "SkTDArray.h" 13 #include "SkTDArray.h"
14 #include "SkTemplates.h"
15 14
16 /** 15 /**
17 * Interface for a spatial data structure that stores axis-aligned bounding 16 * Interface for a spatial data structure that stores axis-aligned bounding
18 * boxes and allows efficient retrieval of intersections with query rectangles. 17 * boxes and allows efficient retrieval of intersections with query rectangles.
19 */ 18 */
20 class SkBBoxHierarchy : public SkRefCnt { 19 class SkBBoxHierarchy : public SkRefCnt {
21 public: 20 public:
22 SkBBoxHierarchy() {} 21 SkBBoxHierarchy() {}
23 virtual ~SkBBoxHierarchy() {} 22 virtual ~SkBBoxHierarchy() {}
24 23
25 /** 24 /**
26 * Insert N bounding boxes into the hierarchy. 25 * Insert N bounding boxes into the hierarchy.
27 */ 26 */
28 virtual void insert(const SkRect[], int N) = 0; 27 virtual void insert(const SkRect[], int N) = 0;
29 28
30 /** 29 /**
31 * Populate results with the indices of bounding boxes interesecting that qu ery. 30 * Populate results with the indices of bounding boxes interesecting that qu ery.
32 */ 31 */
33 virtual void search(const SkRect& query, SkTDArray<int>* results) const = 0; 32 virtual void search(const SkRect& query, SkTDArray<int>* results) const = 0;
34 33
35 virtual size_t bytesUsed() const = 0; 34 virtual size_t bytesUsed() const = 0;
36 35
37 // Get the root bound. 36 // Get the root bound.
38 virtual SkRect getRootBound() const = 0; 37 virtual SkRect getRootBound() const = 0;
39 38
40
41 private: 39 private:
42 typedef SkRefCnt INHERITED; 40 typedef SkRefCnt INHERITED;
43 }; 41 };
44 42
45 #endif 43 #endif
OLDNEW
« no previous file with comments | « src/codec/SkJpegDecoderMgr.h ('k') | src/core/SkBigPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698