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

Side by Side Diff: third_party/agg23/agg_path_storage.h

Issue 1981593002: Fix GCC warnings to be ready for GCC standalone build (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: update patch after formatting Created 4 years, 7 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 | « third_party/agg23/README.pdfium ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 //---------------------------------------------------------------------------- 2 //----------------------------------------------------------------------------
3 // Anti-Grain Geometry - Version 2.3 3 // Anti-Grain Geometry - Version 2.3
4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) 4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
5 // 5 //
6 // Permission to copy, use, modify, sell and distribute this software 6 // Permission to copy, use, modify, sell and distribute this software
7 // is granted provided this copyright notice appears in all copies. 7 // is granted provided this copyright notice appears in all copies.
8 // This software is provided "as is" without express or implied 8 // This software is provided "as is" without express or implied
9 // warranty, and with no claim as to its suitability for any purpose. 9 // warranty, and with no claim as to its suitability for any purpose.
10 // 10 //
(...skipping 20 matching lines...) Expand all
31 { 31 {
32 public: 32 public:
33 vertex_source() {} 33 vertex_source() {}
34 vertex_source(const path_storage& p) : m_path(&p), m_vertex_idx(0) {} 34 vertex_source(const path_storage& p) : m_path(&p), m_vertex_idx(0) {}
35 void rewind(unsigned path_id) 35 void rewind(unsigned path_id)
36 { 36 {
37 m_vertex_idx = path_id; 37 m_vertex_idx = path_id;
38 } 38 }
39 unsigned vertex(FX_FLOAT* x, FX_FLOAT* y) 39 unsigned vertex(FX_FLOAT* x, FX_FLOAT* y)
40 { 40 {
41 return (m_vertex_idx < m_path->total_vertices()) ? 41 return (m_vertex_idx < m_path->total_vertices())
42 m_path->vertex(m_vertex_idx++, x, y) : 42 ? m_path->vertex(m_vertex_idx++, x, y)
43 path_cmd_stop; 43 : static_cast<unsigned>(path_cmd_stop);
44 } 44 }
45 private: 45 private:
46 const path_storage* m_path; 46 const path_storage* m_path;
47 unsigned m_vertex_idx; 47 unsigned m_vertex_idx;
48 }; 48 };
49 ~path_storage(); 49 ~path_storage();
50 path_storage(); 50 path_storage();
51 unsigned last_vertex(FX_FLOAT* x, FX_FLOAT* y) const; 51 unsigned last_vertex(FX_FLOAT* x, FX_FLOAT* y) const;
52 unsigned prev_vertex(FX_FLOAT* x, FX_FLOAT* y) const; 52 unsigned prev_vertex(FX_FLOAT* x, FX_FLOAT* y) const;
53 void move_to(FX_FLOAT x, FX_FLOAT y); 53 void move_to(FX_FLOAT x, FX_FLOAT y);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 inline void path_storage::move_to(FX_FLOAT x, FX_FLOAT y) 163 inline void path_storage::move_to(FX_FLOAT x, FX_FLOAT y)
164 { 164 {
165 add_vertex(x, y, path_cmd_move_to); 165 add_vertex(x, y, path_cmd_move_to);
166 } 166 }
167 inline void path_storage::line_to(FX_FLOAT x, FX_FLOAT y) 167 inline void path_storage::line_to(FX_FLOAT x, FX_FLOAT y)
168 { 168 {
169 add_vertex(x, y, path_cmd_line_to); 169 add_vertex(x, y, path_cmd_line_to);
170 } 170 }
171 } 171 }
172 #endif 172 #endif
OLDNEW
« no previous file with comments | « third_party/agg23/README.pdfium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698