summaryrefslogtreecommitdiff
path: root/third_party/agg23/agg_vcgen_stroke.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-14 14:43:42 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-14 19:05:58 +0000
commit05df075154a832fcb476e1dfcfb865722d0ea898 (patch)
treeb8b771b62adae74d5d5ee561db75d10de3a848bf /third_party/agg23/agg_vcgen_stroke.h
parent6b94f01d1c8ad386d497428c7397b1a99614aeba (diff)
downloadpdfium-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_stroke.h')
-rw-r--r--third_party/agg23/agg_vcgen_stroke.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/third_party/agg23/agg_vcgen_stroke.h b/third_party/agg23/agg_vcgen_stroke.h
index 84fadd6ed8..23142d37f6 100644
--- a/third_party/agg23/agg_vcgen_stroke.h
+++ b/third_party/agg23/agg_vcgen_stroke.h
@@ -61,52 +61,52 @@ public:
{
return m_inner_join;
}
- void width(FX_FLOAT w)
+ void width(float w)
{
m_width = w / 2;
}
- void miter_limit(FX_FLOAT ml)
+ void miter_limit(float ml)
{
m_miter_limit = ml;
}
- void miter_limit_theta(FX_FLOAT t);
- void inner_miter_limit(FX_FLOAT ml)
+ void miter_limit_theta(float t);
+ void inner_miter_limit(float ml)
{
m_inner_miter_limit = ml;
}
- void approximation_scale(FX_FLOAT as)
+ void approximation_scale(float as)
{
m_approx_scale = as;
}
- FX_FLOAT width() const
+ float width() const
{
return m_width * 2;
}
- FX_FLOAT miter_limit() const
+ float miter_limit() const
{
return m_miter_limit;
}
- FX_FLOAT inner_miter_limit() const
+ float inner_miter_limit() const
{
return m_inner_miter_limit;
}
- FX_FLOAT approximation_scale() const
+ float approximation_scale() const
{
return m_approx_scale;
}
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_stroke(const vcgen_stroke&);
const vcgen_stroke& operator = (const vcgen_stroke&);
vertex_storage m_src_vertices;
coord_storage m_out_vertices;
- FX_FLOAT m_width;
- FX_FLOAT m_miter_limit;
- FX_FLOAT m_inner_miter_limit;
- FX_FLOAT m_approx_scale;
+ float m_width;
+ float m_miter_limit;
+ float m_inner_miter_limit;
+ float m_approx_scale;
line_cap_e m_line_cap;
line_join_e m_line_join;
inner_join_e m_inner_join;