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

Side by Side Diff: cc/quads/draw_polygon.h

Issue 1175113010: cc: Rename visible_content_rect and content stuff on quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename-visible-content-rect: moreandroid Created 5 years, 6 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/output/software_renderer.cc ('k') | cc/quads/draw_polygon.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_QUADS_DRAW_POLYGON_H_ 5 #ifndef CC_QUADS_DRAW_POLYGON_H_
6 #define CC_QUADS_DRAW_POLYGON_H_ 6 #define CC_QUADS_DRAW_POLYGON_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 11 matching lines...) Expand all
22 class CC_EXPORT DrawPolygon { 22 class CC_EXPORT DrawPolygon {
23 public: 23 public:
24 DrawPolygon(); 24 DrawPolygon();
25 ~DrawPolygon(); 25 ~DrawPolygon();
26 26
27 DrawPolygon(const DrawQuad* original_ref, 27 DrawPolygon(const DrawQuad* original_ref,
28 const std::vector<gfx::Point3F>& in_points, 28 const std::vector<gfx::Point3F>& in_points,
29 const gfx::Vector3dF& normal, 29 const gfx::Vector3dF& normal,
30 int draw_order_index = 0); 30 int draw_order_index = 0);
31 DrawPolygon(const DrawQuad* original_ref, 31 DrawPolygon(const DrawQuad* original_ref,
32 const gfx::RectF& visible_content_rect, 32 const gfx::RectF& visible_layer_rect,
33 const gfx::Transform& transform, 33 const gfx::Transform& transform,
34 int draw_order_index = 0); 34 int draw_order_index = 0);
35 35
36 // Split takes this DrawPolygon and splits it into two pieces that are on 36 // Split takes this DrawPolygon and splits it into two pieces that are on
37 // either side of |splitter|. Any edges of this polygon that cross the plane 37 // either side of |splitter|. Any edges of this polygon that cross the plane
38 // of |splitter| will have an intersection point that is shared by both 38 // of |splitter| will have an intersection point that is shared by both
39 // polygons on either side. 39 // polygons on either side.
40 // Split will only return true if it determines that we got back 2 40 // Split will only return true if it determines that we got back 2
41 // intersection points. Only when it returns true will front and back both be 41 // intersection points. Only when it returns true will front and back both be
42 // valid new polygons that are on opposite sides of the splitting plane. 42 // valid new polygons that are on opposite sides of the splitting plane.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // we need. 74 // we need.
75 // This DrawQuad is owned by the caller and its lifetime must be preserved 75 // This DrawQuad is owned by the caller and its lifetime must be preserved
76 // as long as this DrawPolygon is alive. 76 // as long as this DrawPolygon is alive.
77 const DrawQuad* original_ref_; 77 const DrawQuad* original_ref_;
78 bool is_split_; 78 bool is_split_;
79 }; 79 };
80 80
81 } // namespace cc 81 } // namespace cc
82 82
83 #endif // CC_QUADS_DRAW_POLYGON_H_ 83 #endif // CC_QUADS_DRAW_POLYGON_H_
OLDNEW
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/quads/draw_polygon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698