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

Side by Side Diff: include/core/SkBBHFactory.h

Issue 828503004: Skia: Remove unused TileGridInfo (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | 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 SkBBHFactory_DEFINED 8 #ifndef SkBBHFactory_DEFINED
9 #define SkBBHFactory_DEFINED 9 #define SkBBHFactory_DEFINED
10 10
11 #include "SkSize.h"
12 #include "SkRect.h" 11 #include "SkRect.h"
13 12
14 class SkBBoxHierarchy; 13 class SkBBoxHierarchy;
15 14
16 class SK_API SkBBHFactory { 15 class SK_API SkBBHFactory {
17 public: 16 public:
18 /** 17 /**
19 * Allocate a new SkBBoxHierarchy. Return NULL on failure. 18 * Allocate a new SkBBoxHierarchy. Return NULL on failure.
20 */ 19 */
21 virtual SkBBoxHierarchy* operator()(const SkRect& bounds) const = 0; 20 virtual SkBBoxHierarchy* operator()(const SkRect& bounds) const = 0;
22 virtual ~SkBBHFactory() {}; 21 virtual ~SkBBHFactory() {};
23 }; 22 };
24 23
25 class SK_API SkRTreeFactory : public SkBBHFactory { 24 class SK_API SkRTreeFactory : public SkBBHFactory {
26 public: 25 public:
27 SkBBoxHierarchy* operator()(const SkRect& bounds) const SK_OVERRIDE; 26 SkBBoxHierarchy* operator()(const SkRect& bounds) const SK_OVERRIDE;
28 private: 27 private:
29 typedef SkBBHFactory INHERITED; 28 typedef SkBBHFactory INHERITED;
30 }; 29 };
31 30
32 // TODO(mtklein): delete entirely when Chromium's clean for TileGridInfo
33 class SK_API SkTileGridFactory {
34 public:
35 struct TileGridInfo {
36 /** Tile placement interval */
37 SkISize fTileInterval;
38
39 /** Pixel coverage overlap between adjacent tiles */
40 SkISize fMargin;
41
42 /** Offset added to device-space bounding box positions to convert
43 * them to tile-grid space. This can be used to adjust the "phase"
44 * of the tile grid to match probable query rectangles that will be
45 * used to search into the tile grid. As long as the offset is smaller
46 * or equal to the margin, there is no need to extend the domain of
47 * the tile grid to prevent data loss.
48 */
49 SkIPoint fOffset;
50 };
51 };
52
53 #endif 31 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698