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

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

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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_painter.h ('k') | cc/resources/layer_tiling_data.h » ('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 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
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_
OLDNEW
« no previous file with comments | « cc/resources/layer_painter.h ('k') | cc/resources/layer_tiling_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698