| 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 | 5 |
| 6 #ifndef CC_RESOURCES_LAYER_QUAD_H_ | 6 #ifndef CC_RESOURCES_LAYER_QUAD_H_ |
| 7 #define CC_RESOURCES_LAYER_QUAD_H_ | 7 #define CC_RESOURCES_LAYER_QUAD_H_ |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "cc/base/cc_export.h" | |
| 11 #include "ui/gfx/geometry/point_f.h" | 10 #include "ui/gfx/geometry/point_f.h" |
| 12 | 11 |
| 13 namespace gfx { | 12 namespace gfx { |
| 14 class QuadF; | 13 class QuadF; |
| 15 } | 14 } |
| 16 | 15 |
| 17 static const float kAntiAliasingInflateDistance = 0.5f; | 16 static const float kAntiAliasingInflateDistance = 0.5f; |
| 18 | 17 |
| 19 namespace cc { | 18 namespace cc { |
| 20 | 19 |
| 21 class CC_EXPORT LayerQuad { | 20 class LayerQuad { |
| 22 public: | 21 public: |
| 23 class CC_EXPORT Edge { | 22 class Edge { |
| 24 public: | 23 public: |
| 25 Edge() : x_(0), y_(0), z_(0), degenerate_(false) {} | 24 Edge() : x_(0), y_(0), z_(0), degenerate_(false) {} |
| 26 Edge(const gfx::PointF& p, const gfx::PointF& q); | 25 Edge(const gfx::PointF& p, const gfx::PointF& q); |
| 27 | 26 |
| 28 float x() const { return x_; } | 27 float x() const { return x_; } |
| 29 float y() const { return y_; } | 28 float y() const { return y_; } |
| 30 float z() const { return z_; } | 29 float z() const { return z_; } |
| 31 | 30 |
| 32 void set_x(float x) { x_ = x; } | 31 void set_x(float x) { x_ = x; } |
| 33 void set_y(float y) { y_ = y; } | 32 void set_y(float y) { y_ = y; } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 Edge top_; | 103 Edge top_; |
| 105 Edge right_; | 104 Edge right_; |
| 106 Edge bottom_; | 105 Edge bottom_; |
| 107 | 106 |
| 108 DISALLOW_COPY_AND_ASSIGN(LayerQuad); | 107 DISALLOW_COPY_AND_ASSIGN(LayerQuad); |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 } // namespace cc | 110 } // namespace cc |
| 112 | 111 |
| 113 #endif // CC_RESOURCES_LAYER_QUAD_H_ | 112 #endif // CC_RESOURCES_LAYER_QUAD_H_ |
| OLD | NEW |