diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-03-14 14:43:42 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-14 19:05:58 +0000 |
commit | 05df075154a832fcb476e1dfcfb865722d0ea898 (patch) | |
tree | b8b771b62adae74d5d5ee561db75d10de3a848bf /third_party/agg23/agg_vcgen_dash.h | |
parent | 6b94f01d1c8ad386d497428c7397b1a99614aeba (diff) | |
download | pdfium-05df075154a832fcb476e1dfcfb865722d0ea898.tar.xz |
Replace FX_FLOAT with underlying float type.
Change-Id: I158b7d80b0ec28b742a9f2d5a96f3dde7fb3ab56
Reviewed-on: https://pdfium-review.googlesource.com/3031
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'third_party/agg23/agg_vcgen_dash.h')
-rw-r--r-- | third_party/agg23/agg_vcgen_dash.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/third_party/agg23/agg_vcgen_dash.h b/third_party/agg23/agg_vcgen_dash.h index 9c3aa630c2..7702fa7adc 100644 --- a/third_party/agg23/agg_vcgen_dash.h +++ b/third_party/agg23/agg_vcgen_dash.h @@ -38,9 +38,9 @@ public: typedef vertex_sequence<vertex_dist, 6> vertex_storage; vcgen_dash(); void remove_all_dashes(); - void add_dash(FX_FLOAT dash_len, FX_FLOAT gap_len); - void dash_start(FX_FLOAT ds); - void shorten(FX_FLOAT s) + void add_dash(float dash_len, float gap_len); + void dash_start(float ds); + void shorten(float s) { m_shorten = s; } @@ -49,21 +49,21 @@ public: return m_shorten; } void remove_all(); - void add_vertex(FX_FLOAT x, FX_FLOAT y, unsigned cmd); + void add_vertex(float x, float y, unsigned cmd); void rewind(unsigned path_id); - unsigned vertex(FX_FLOAT* x, FX_FLOAT* y); + unsigned vertex(float* x, float* y); private: vcgen_dash(const vcgen_dash&); const vcgen_dash& operator = (const vcgen_dash&); - void calc_dash_start(FX_FLOAT ds); - FX_FLOAT m_dashes[max_dashes]; - FX_FLOAT m_total_dash_len; + void calc_dash_start(float ds); + float m_dashes[max_dashes]; + float m_total_dash_len; unsigned m_num_dashes; - FX_FLOAT m_dash_start; - FX_FLOAT m_shorten; - FX_FLOAT m_curr_dash_start; + float m_dash_start; + float m_shorten; + float m_curr_dash_start; unsigned m_curr_dash; - FX_FLOAT m_curr_rest; + float m_curr_rest; const vertex_dist* m_v1; const vertex_dist* m_v2; vertex_storage m_src_vertices; |