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

Side by Side Diff: cc/resources/layer_quad.cc

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 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
« no previous file with comments | « cc/resources/layer_quad.h ('k') | cc/resources/layer_quad_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 "cc/resources/layer_quad.h" 5 #include "cc/resources/layer_quad.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/gfx/quad_f.h" 8 #include "ui/gfx/geometry/quad_f.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 LayerQuad::Edge::Edge(const gfx::PointF& p, const gfx::PointF& q) { 12 LayerQuad::Edge::Edge(const gfx::PointF& p, const gfx::PointF& q) {
13 DCHECK(p != q); 13 DCHECK(p != q);
14 14
15 gfx::Vector2dF tangent(p.y() - q.y(), q.x() - p.x()); 15 gfx::Vector2dF tangent(p.y() - q.y(), q.x() - p.x());
16 float cross2 = p.x() * q.y() - q.x() * p.y(); 16 float cross2 = p.x() * q.y() - q.x() * p.y();
17 17
18 set(tangent.x(), tangent.y(), cross2); 18 set(tangent.x(), tangent.y(), cross2);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 flattened[5] = top_.z(); 58 flattened[5] = top_.z();
59 flattened[6] = right_.x(); 59 flattened[6] = right_.x();
60 flattened[7] = right_.y(); 60 flattened[7] = right_.y();
61 flattened[8] = right_.z(); 61 flattened[8] = right_.z();
62 flattened[9] = bottom_.x(); 62 flattened[9] = bottom_.x();
63 flattened[10] = bottom_.y(); 63 flattened[10] = bottom_.y();
64 flattened[11] = bottom_.z(); 64 flattened[11] = bottom_.z();
65 } 65 }
66 66
67 } // namespace cc 67 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/layer_quad.h ('k') | cc/resources/layer_quad_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698