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

Side by Side Diff: cc/layer_sorter.cc

Issue 11225040: cc: Remove CC*.h temporary includes, part 5/4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_sorter.h ('k') | cc/layer_sorter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « cc/layer_sorter.h ('k') | cc/layer_sorter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698