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_rasterizer_scanline_aa.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_rasterizer_scanline_aa.h')
-rw-r--r-- | third_party/agg23/agg_rasterizer_scanline_aa.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/third_party/agg23/agg_rasterizer_scanline_aa.h b/third_party/agg23/agg_rasterizer_scanline_aa.h index fc28290f54..c747ee379e 100644 --- a/third_party/agg23/agg_rasterizer_scanline_aa.h +++ b/third_party/agg23/agg_rasterizer_scanline_aa.h @@ -45,7 +45,7 @@ enum poly_base_scale_e { poly_base_size = 1 << poly_base_shift, poly_base_mask = poly_base_size - 1 }; -inline int poly_coord(FX_FLOAT c) +inline int poly_coord(float c) { return int(c * poly_base_size); } @@ -219,14 +219,14 @@ public: m_outline.reset(); m_status = status_initial; } - void clip_box(FX_FLOAT x1, FX_FLOAT y1, FX_FLOAT x2, FX_FLOAT y2) + void clip_box(float x1, float y1, float x2, float y2) { m_clip_box = rect(poly_coord(x1), poly_coord(y1), poly_coord(x2), poly_coord(y2)); m_clip_box.normalize(); m_clipping = true; } - void add_vertex(FX_FLOAT x, FX_FLOAT y, unsigned cmd) + void add_vertex(float x, float y, unsigned cmd) { if(is_close(cmd)) { close_polygon(); @@ -374,8 +374,8 @@ public: template<class VertexSource> void add_path(VertexSource& vs, unsigned path_id = 0) { - FX_FLOAT x; - FX_FLOAT y; + float x; + float y; unsigned cmd; vs.rewind(path_id); while(!is_stop(cmd = vs.vertex(&x, &y))) { @@ -385,8 +385,8 @@ public: template<class VertexSource> void add_path_transformed(VertexSource& vs, const CFX_Matrix* pMatrix, unsigned path_id = 0) { - FX_FLOAT x; - FX_FLOAT y; + float x; + float y; unsigned cmd; vs.rewind(path_id); while(!is_stop(cmd = vs.vertex(&x, &y))) { |