| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/base/rtree.h" | 5 #include "cc/base/rtree.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <cmath> | 10 #include <cmath> |
| 8 | 11 |
| 9 #include "base/logging.h" | 12 #include "base/logging.h" |
| 10 | 13 |
| 11 namespace cc { | 14 namespace cc { |
| 12 | 15 |
| 13 RTree::RTree() : num_data_elements_(0u) {} | 16 RTree::RTree() : num_data_elements_(0u) {} |
| 14 | 17 |
| 15 RTree::~RTree() {} | 18 RTree::~RTree() {} |
| 16 | 19 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 SearchRecursive(node->children[i].subtree, query, results); | 108 SearchRecursive(node->children[i].subtree, query, results); |
| 106 } | 109 } |
| 107 } | 110 } |
| 108 } | 111 } |
| 109 | 112 |
| 110 gfx::Rect RTree::GetBounds() const { | 113 gfx::Rect RTree::GetBounds() const { |
| 111 return root_.bounds; | 114 return root_.bounds; |
| 112 } | 115 } |
| 113 | 116 |
| 114 } // namespace cc | 117 } // namespace cc |
| OLD | NEW |