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 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "CCLayerSorter.h" | 7 #include "cc/layer_sorter.h" |
8 | 8 |
9 #include "CCRenderSurface.h" | |
10 #include "base/logging.h" | |
11 #include "cc/math_util.h" | |
12 #include <public/WebTransformationMatrix.h> | |
13 #include <deque> | 9 #include <deque> |
14 #include <limits> | 10 #include <limits> |
15 #include <vector> | 11 #include <vector> |
16 | 12 |
| 13 #include "base/logging.h" |
| 14 #include "cc/math_util.h" |
| 15 #include "cc/render_surface_impl.h" |
| 16 #include <public/WebTransformationMatrix.h> |
| 17 |
17 using namespace std; | 18 using namespace std; |
18 using WebKit::WebTransformationMatrix; | 19 using WebKit::WebTransformationMatrix; |
19 | 20 |
20 namespace cc { | 21 namespace cc { |
21 | 22 |
22 inline static float perpProduct(const FloatSize& u, const FloatSize& v) | 23 inline static float perpProduct(const FloatSize& u, const FloatSize& v) |
23 { | 24 { |
24 return u.width() * v.height() - u.height() * v.width(); | 25 return u.width() * v.height() - u.height() * v.width(); |
25 } | 26 } |
26 | 27 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 *it = sortedList[count++]->layer; | 403 *it = sortedList[count++]->layer; |
403 | 404 |
404 DVLOG(2) << "Sorting end ----"; | 405 DVLOG(2) << "Sorting end ----"; |
405 | 406 |
406 m_nodes.clear(); | 407 m_nodes.clear(); |
407 m_edges.clear(); | 408 m_edges.clear(); |
408 m_activeEdges.clear(); | 409 m_activeEdges.clear(); |
409 } | 410 } |
410 | 411 |
411 } | 412 } |
OLD | NEW |