OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "cc/base/cc_export.h" | 13 #include "cc/base/cc_export.h" |
14 #include "cc/base/scoped_ptr_vector.h" | 14 #include "cc/base/scoped_ptr_vector.h" |
15 #include "cc/layers/layer_lists.h" | 15 #include "cc/layers/layer_lists.h" |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/geometry/rect.h" |
| 17 #include "ui/gfx/geometry/vector2d.h" |
17 #include "ui/gfx/transform.h" | 18 #include "ui/gfx/transform.h" |
18 #include "ui/gfx/vector2d.h" | |
19 | 19 |
20 namespace cc { | 20 namespace cc { |
21 | 21 |
22 class LayerImpl; | 22 class LayerImpl; |
23 class Layer; | 23 class Layer; |
24 class SwapPromise; | 24 class SwapPromise; |
25 | 25 |
26 class CC_EXPORT LayerTreeHostCommon { | 26 class CC_EXPORT LayerTreeHostCommon { |
27 public: | 27 public: |
28 static gfx::Rect CalculateVisibleRect(const gfx::Rect& target_surface_rect, | 28 static gfx::Rect CalculateVisibleRect(const gfx::Rect& target_surface_rect, |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 false, | 250 false, |
251 render_surface_layer_list, | 251 render_surface_layer_list, |
252 0) { | 252 0) { |
253 DCHECK(root_layer); | 253 DCHECK(root_layer); |
254 DCHECK(render_surface_layer_list); | 254 DCHECK(render_surface_layer_list); |
255 } | 255 } |
256 | 256 |
257 } // namespace cc | 257 } // namespace cc |
258 | 258 |
259 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ | 259 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ |
OLD | NEW |