summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_render/include
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-05-26 11:37:27 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-26 11:37:27 -0700
commitfd6cfad310187631554613c375ec1b4c5ef887a3 (patch)
treef802d78debcd2daf8c336c2d4fea489f23fc388b /core/fpdfapi/fpdf_render/include
parent7091c5b674069884adb005eaa41cdfb836ef4cfa (diff)
downloadpdfium-fd6cfad310187631554613c375ec1b4c5ef887a3.tar.xz
Clean up CPDF_TextRenderer slightly.
- Remove dead code - Remove default arguments - Move code into anonymous namespace Review-Url: https://codereview.chromium.org/2013023002
Diffstat (limited to 'core/fpdfapi/fpdf_render/include')
-rw-r--r--core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h25
1 files changed, 4 insertions, 21 deletions
diff --git a/core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h b/core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h
index d532196675..c4031bbbff 100644
--- a/core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h
+++ b/core/fpdfapi/fpdf_render/include/cpdf_textrenderer.h
@@ -21,14 +21,6 @@ class CPDF_Font;
class CPDF_TextRenderer {
public:
static void DrawTextString(CFX_RenderDevice* pDevice,
- int left,
- int top,
- CPDF_Font* pFont,
- int height,
- const CFX_ByteString& str,
- FX_ARGB argb);
-
- static void DrawTextString(CFX_RenderDevice* pDevice,
FX_FLOAT origin_x,
FX_FLOAT origin_y,
CPDF_Font* pFont,
@@ -36,9 +28,9 @@ class CPDF_TextRenderer {
const CFX_Matrix* matrix,
const CFX_ByteString& str,
FX_ARGB fill_argb,
- FX_ARGB stroke_argb = 0,
- const CFX_GraphStateData* pGraphState = NULL,
- const CPDF_RenderOptions* pOptions = NULL);
+ FX_ARGB stroke_argb,
+ const CFX_GraphStateData* pGraphState,
+ const CPDF_RenderOptions* pOptions);
static FX_BOOL DrawTextPath(CFX_RenderDevice* pDevice,
int nChars,
@@ -52,7 +44,7 @@ class CPDF_TextRenderer {
FX_ARGB fill_argb,
FX_ARGB stroke_argb,
CFX_PathData* pClippingPath,
- int nFlag = 0);
+ int nFlag);
static FX_BOOL DrawNormalText(CFX_RenderDevice* pDevice,
int nChars,
@@ -63,15 +55,6 @@ class CPDF_TextRenderer {
const CFX_Matrix* pText2Device,
FX_ARGB fill_argb,
const CPDF_RenderOptions* pOptions);
-
- static FX_BOOL DrawType3Text(CFX_RenderDevice* pDevice,
- int nChars,
- uint32_t* pCharCodes,
- FX_FLOAT* pCharPos,
- CPDF_Font* pFont,
- FX_FLOAT font_size,
- const CFX_Matrix* pText2Device,
- FX_ARGB fill_argb);
};
#endif // CORE_FPDFAPI_FPDF_RENDER_INCLUDE_CPDF_TEXTRENDERER_H_