| 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 "cc/resources/layer_quad.h" | 5 #include "cc/output/layer_quad.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/gfx/geometry/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 if (p == q) { | 13 if (p == q) { |
| 14 degenerate_ = true; | 14 degenerate_ = true; |
| 15 return; | 15 return; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 flattened[10] = right_.y(); | 115 flattened[10] = right_.y(); |
| 116 flattened[11] = right_.z(); | 116 flattened[11] = right_.z(); |
| 117 } else { | 117 } else { |
| 118 flattened[9] = bottom_.x(); | 118 flattened[9] = bottom_.x(); |
| 119 flattened[10] = bottom_.y(); | 119 flattened[10] = bottom_.y(); |
| 120 flattened[11] = bottom_.z(); | 120 flattened[11] = bottom_.z(); |
| 121 } | 121 } |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace cc | 124 } // namespace cc |
| OLD | NEW |