summaryrefslogtreecommitdiff
path: root/core/fxge/win32/win32_int.h
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-06-21 11:24:24 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-21 11:24:24 -0700
commit095d346ff71ebe0385dfe7fa77baad6a1ce91fcb (patch)
tree2cfdb14ff75fb94607eea2306c56e282b25edf31 /core/fxge/win32/win32_int.h
parent8f93cc640473a7d2855c3bc9bfd5169a8b1ca76c (diff)
downloadpdfium-095d346ff71ebe0385dfe7fa77baad6a1ce91fcb.tar.xz
Move ifx_renderdevicedriver to a separate file to share
Move ifx_renderdevicedriver class to its own file to share with multiple devices to reduce code duplication. Review-Url: https://codereview.chromium.org/2078783002
Diffstat (limited to 'core/fxge/win32/win32_int.h')
-rw-r--r--core/fxge/win32/win32_int.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fxge/win32/win32_int.h b/core/fxge/win32/win32_int.h
index b09c4ebbd5..9744324008 100644
--- a/core/fxge/win32/win32_int.h
+++ b/core/fxge/win32/win32_int.h
@@ -7,7 +7,7 @@
#ifndef CORE_FXGE_WIN32_WIN32_INT_H_
#define CORE_FXGE_WIN32_WIN32_INT_H_
-#include "core/fxge/include/fx_ge.h"
+#include "core/fxge/include/ifx_renderdevicedriver.h"
#include "core/fxge/win32/dwrite_int.h"
struct WINDIB_Open_Args_;
@@ -111,7 +111,7 @@ class CGdiDeviceDriver : public IFX_RenderDeviceDriver {
~CGdiDeviceDriver() override;
// IFX_RenderDeviceDriver
- int GetDeviceCaps(int caps_id) override;
+ int GetDeviceCaps(int caps_id) const override;
void SaveState() override;
void RestoreState(bool bKeepSaved) override;
FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData,
@@ -220,7 +220,7 @@ class CGdiPrinterDriver : public CGdiDeviceDriver {
~CGdiPrinterDriver() override;
protected:
- int GetDeviceCaps(int caps_id) override;
+ int GetDeviceCaps(int caps_id) const override;
FX_BOOL SetDIBits(const CFX_DIBSource* pBitmap,
uint32_t color,
const FX_RECT* pSrcRect,