summaryrefslogtreecommitdiff
path: root/core/fxge/ge
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-07-21 23:26:47 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-21 23:26:47 -0700
commit8f19e4bc617d19e871137be55a34992e421585ad (patch)
treeb4519d00db1e5cdd45cf178bfdaa4c18e247494f /core/fxge/ge
parentc38cd6eb274429a5755e04d2e22a606375851717 (diff)
downloadpdfium-8f19e4bc617d19e871137be55a34992e421585ad.tar.xz
Fix skia build broken by commit c38cd6
Add back one function which is only used by Skia code. And make a couple small fixes. Review-Url: https://codereview.chromium.org/2167383002
Diffstat (limited to 'core/fxge/ge')
-rw-r--r--core/fxge/ge/fx_ge_device.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/fxge/ge/fx_ge_device.cpp b/core/fxge/ge/fx_ge_device.cpp
index 571f90cfa1..2f4e0a0eec 100644
--- a/core/fxge/ge/fx_ge_device.cpp
+++ b/core/fxge/ge/fx_ge_device.cpp
@@ -21,6 +21,12 @@ CFX_RenderDevice::CFX_RenderDevice()
CFX_RenderDevice::~CFX_RenderDevice() {}
+#ifdef _SKIA_SUPPORT_
+void CFX_RenderDevice::Flush() {
+ m_pDeviceDriver.reset();
+}
+#endif
+
void CFX_RenderDevice::SetDeviceDriver(
std::unique_ptr<IFX_RenderDeviceDriver> pDriver) {
m_pDeviceDriver = std::move(pDriver);