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