diff options
author | Lei Zhang <thestig@chromium.org> | 2018-01-18 19:03:58 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-18 19:03:58 +0000 |
commit | 6e59fb5fda71eb527568a58d9c948b5f76c9bdc2 (patch) | |
tree | 82bb6ad56c0c5c256500ea8a1d355810846163bb /core/fxge/skia | |
parent | 51344821bb8d1d3309bb1dd82972df26b75745e2 (diff) | |
download | pdfium-6e59fb5fda71eb527568a58d9c948b5f76c9bdc2.tar.xz |
Remove more unneeded includes and code from headers.
Change-Id: I0a07dbc9850bef2184ed35ff04b08385fc1bdd17
Reviewed-on: https://pdfium-review.googlesource.com/22891
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxge/skia')
-rw-r--r-- | core/fxge/skia/fx_skia_device.cpp | 4 | ||||
-rw-r--r-- | core/fxge/skia/fx_skia_device.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp index 6e27ea1775..ab8efff72c 100644 --- a/core/fxge/skia/fx_skia_device.cpp +++ b/core/fxge/skia/fx_skia_device.cpp @@ -1548,6 +1548,10 @@ void CFX_SkiaDeviceDriver::Flush() { m_pCache->Flush(); } +void CFX_SkiaDeviceDriver::PreMultiply() { + m_pBitmap->PreMultiply(); +} + bool CFX_SkiaDeviceDriver::DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, diff --git a/core/fxge/skia/fx_skia_device.h b/core/fxge/skia/fx_skia_device.h index 4423081251..7dfdef4de8 100644 --- a/core/fxge/skia/fx_skia_device.h +++ b/core/fxge/skia/fx_skia_device.h @@ -150,7 +150,7 @@ class CFX_SkiaDeviceDriver : public IFX_RenderDeviceDriver { void Clear(uint32_t color); void Flush() override; SkPictureRecorder* GetRecorder() const { return m_pRecorder; } - void PreMultiply() { m_pBitmap->PreMultiply(); } + void PreMultiply(); static void PreMultiply(const RetainPtr<CFX_DIBitmap>& pDIBitmap); SkCanvas* SkiaCanvas() { return m_pCanvas; } void DebugVerifyBitmapIsPreMultiplied() const; |