summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_renderdevice.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-07-11 13:48:15 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-11 19:02:41 +0000
commit071f5eda0399d6f260cc1b67beffcdaa315a9af7 (patch)
tree7e74002e896431a98c1925c4e3e131abcdca140f /core/fxge/cfx_renderdevice.h
parent7a9a38bd1c41f0f909534e56789a22d57b1a2663 (diff)
downloadpdfium-071f5eda0399d6f260cc1b67beffcdaa315a9af7.tar.xz
Cleanup CFX_RenderDevice
This CL adds some helper namespace methods and cleans up methods. Change-Id: I7ef51dd1ff365d307694a10519d532698ee39211 Reviewed-on: https://pdfium-review.googlesource.com/7550 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/cfx_renderdevice.h')
-rw-r--r--core/fxge/cfx_renderdevice.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/core/fxge/cfx_renderdevice.h b/core/fxge/cfx_renderdevice.h
index 165b729541..83c45f9528 100644
--- a/core/fxge/cfx_renderdevice.h
+++ b/core/fxge/cfx_renderdevice.h
@@ -142,18 +142,9 @@ class CFX_RenderDevice {
uint32_t stroke_color,
int fill_mode,
int blend_type);
- bool SetPixel(int x, int y, uint32_t color);
bool FillRect(const FX_RECT* pRect, uint32_t color) {
return FillRectWithBlend(pRect, color, FXDIB_BLEND_NORMAL);
}
- bool FillRectWithBlend(const FX_RECT* pRect, uint32_t color, int blend_type);
- bool DrawCosmeticLine(float x1,
- float y1,
- float x2,
- float y2,
- uint32_t color,
- int fill_mode,
- int blend_type);
CFX_RetainPtr<CFX_DIBitmap> GetBackDrop();
bool GetDIBits(const CFX_RetainPtr<CFX_DIBitmap>& pBitmap, int left, int top);
@@ -259,6 +250,14 @@ class CFX_RenderDevice {
uint32_t stroke_color,
int fill_mode,
int blend_type);
+ bool DrawCosmeticLine(float x1,
+ float y1,
+ float x2,
+ float y2,
+ uint32_t color,
+ int fill_mode,
+ int blend_type);
+ bool FillRectWithBlend(const FX_RECT* pRect, uint32_t color, int blend_type);
CFX_RetainPtr<CFX_DIBitmap> m_pBitmap;
int m_Width;