summaryrefslogtreecommitdiff
path: root/core/fxge/skia
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-01-18 19:03:58 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-18 19:03:58 +0000
commit6e59fb5fda71eb527568a58d9c948b5f76c9bdc2 (patch)
tree82bb6ad56c0c5c256500ea8a1d355810846163bb /core/fxge/skia
parent51344821bb8d1d3309bb1dd82972df26b75745e2 (diff)
downloadpdfium-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.cpp4
-rw-r--r--core/fxge/skia/fx_skia_device.h2
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;